Nebulous Puffy Marshmallows

    @mverissimoo/storybook-addon-status

    1.0.6 • Public • Published

    Storybook Addon Status

    Storybook Status Addon show the component status in your story.

    Live preview

    Installation

    yarn add --dev @mverissimoo/storybook-addon-status

    Configuration

    Add storybook-addon-status to your list of addons:

    // .storybook/main.js
    
    module.exports = {
      addons: ['@mverissimoo/storybook-addon-status/preset'],
    };

    Usage

    Just add the following param in your storie:

    export default {
      title: 'Components/Button',
      parameters: {
        status: 'stable', // beta| deprecated | review | stable
      },
    };

    Custom status badge

    Just add a status object in your parameters eg:

    // .storybbok/preview.js
    
    export const parameters = {
      badges: {
        custom: {
          title: 'some badge',
          color: '#FFFFFF',
          background: '#000000',
        },
      },
    };

    Install

    npm i @mverissimoo/storybook-addon-status

    DownloadsWeekly Downloads

    272

    Version

    1.0.6

    License

    MIT

    Unpacked Size

    10.9 kB

    Total Files

    13

    Last publish

    Collaborators

    • mverissimoo