Package detail

storybook-pretty-props

hipstersmoothie270kMIT1.2.1

Render prop types in a pretty way! Useful for storybook addons that display prop types.

readme

storybook-pretty-props

Render prop types from react-docgen or react-docgen-typescript in a pretty way. Useful for storybook addons that display prop types.

Installation

npm i storybook-pretty-props
# with yarn
yarn add storybook-pretty-props

Usage

Combine this with docgen output to render the prop type!

import PrettyPropType from "storybook-pretty-props";

const Example = () => (
  <PrettyPropType
    propType={{
      name: "enum",
      value: [
        { name: "literal", value: "a" },
        { name: "literal", value: "b" },
        { name: "literal", value: "c" }
      ]
    }}
  />
);

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Andrew Lisowski

💻 📖 💡 ⚠️

Peter Mikitsh

💡 💻

This project follows the all-contributors specification. Contributions of any kind welcome!

changelog

v1.2.1 (Wed Jun 17 2020)

:tada: This release contains work from a new contributor! :tada:

Thank you, Andrew Lisowski (@hipstersmoothie), for all your work!

⚠️ Pushed to master

Authors: 1


v1.2.0 (Wed Jun 17 2020)

:tada: This release contains work from a new contributor! :tada:

Thank you, Andrew Lisowski (@hipstersmoothie), for all your work!

🚀 Enhancement

Authors: 1


v1.1.3 (Fri Jun 12 2020)

:tada: This release contains work from a new contributor! :tada:

Thank you, Andrew Lisowski (@hipstersmoothie), for all your work!

⚠️ Pushed to master

Authors: 1


v1.1.2 (Tue Jun 09 2020)

🐛 Bug Fix

Authors: 1


v1.1.1 (Mon Jun 08 2020)

:tada: This release contains work from a new contributor! :tada:

Thank you, Andrew Lisowski (@hipstersmoothie), for all your work!

⚠️ Pushed to master

Authors: 1


v1.1.0 (Mon Jun 08 2020)

:tada: This release contains work from a new contributor! :tada:

Thank you, Peter Mikitsh (@petermikitsh), for all your work!

🚀 Enhancement

Authors: 1


v1.0.3 (Fri Apr 10 2020)

:tada: This release contains work from a new contributor! :tada:

Thank you, Andrew Lisowski (@hipstersmoothie), for all your work!

⚠️ Pushed to master

Authors: 1


v1.0.2 (Fri Apr 10 2020)

:tada: This release contains work from a new contributor! :tada:

Thank you, Andrew Lisowski (@hipstersmoothie), for all your work!

⚠️ Pushed to master

Authors: 1


v1.0.1 (Fri Apr 10 2020)

:tada: This release contains work from a new contributor! :tada:

Thank you, Andrew Lisowski (@hipstersmoothie), for all your work!

⚠️ Pushed to master

Authors: 1