Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/faebeee/storybook-badges
https://github.com/faebeee/storybook-badges
Last synced: about 5 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/faebeee/storybook-badges
- Owner: faebeee
- Created: 2020-05-28T19:42:50.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T07:17:53.000Z (almost 2 years ago)
- Last Synced: 2024-04-14T07:44:57.486Z (7 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@faebeee/storybook-badges
- Size: 392 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# @faebeee/storybook-badges
Storybook addon to add a new Tab which can show a
status of the shown component. So you can easily keep
track of the state of a component. For example you can visualize
if it's already release. Or if its a draft or needs a redesign or if it's
still in development![Example](./doc/example.png)
## install
npm i @faebeee/storybook-badges
add the addonimport '@faebeee/storybook-badges';
configure default config
.storybook/config.js
import { addDecorator, addParameters } from '@storybook/react';
addParameters({
badges: {
icon_size: 50,
icons: {
'utility': {
icon: '/assets/img/utility-comp.png',
text: "Utility Component"
},
}
},
});and in your story
const stories = storiesOf('Component', module)
stories.add(
'Default',
() => (),
{
badges: {
badges: ['utility'],
},
}
);