Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

storybook-pretty-props

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

storybook-pretty-props

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

  • 1.2.2-canary.33.185.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
75K
increased by2.22%
Maintainers
1
Weekly downloads
 
Created
Source

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!

FAQs

Package last updated on 12 Dec 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc