Storybook Status Addon show the component status in your story.
yarn add --dev @mverissimoo/storybook-addon-status
Add storybook-addon-status to your list of addons:
// .storybook/main.js
module.exports = {
addons: ['@mverissimoo/storybook-addon-status/preset'],
};
Just add the following param in your storie:
export default {
title: 'Components/Button',
parameters: {
status: 'stable', // beta| deprecated | review | stable
},
};
Just add a status
object in your parameters
eg:
// .storybbok/preview.js
export const parameters = {
badges: {
custom: {
title: 'some badge',
color: '#FFFFFF',
background: '#000000',
},
},
};