Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
storybook-pretty-props
Advanced tools
Render prop types in a pretty way! Useful for storybook addons that display prop types.
Render prop types from react-docgen or react-docgen-typescript in a pretty way. Useful for storybook addons that display prop types.
npm i storybook-pretty-props
# with yarn
yarn add storybook-pretty-props
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" }
]
}}
/>
);
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
Render prop types in a pretty way! Useful for storybook addons that display prop types.
We found that storybook-pretty-props demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.