Negligent Parachute Maintainers

    @inki/storybook-addon-theme
    TypeScript icon, indicating that this package has built-in type declarations

    1.0.1 • Public • Published

    Storybook theme addon

    Notice

    Only support storybook 5.x and newer.

    Installation

    npm i @inki/storybook-addon-theme --dev

    Add to .storybook/addons.js

    import '@inki/storybook-addon-theme/register';

    Usage

    .storybook/config.js

    import { addParameters } from '@storybook/vue';
    
    const themes = [
        {
          label: "Chalk",
          value: 'chalk'
        },
        {
          label: "Dark",
          value: "dark"
        }
    ];
    
    addParameters({ 
      themes: {
        items: themes,
        // optional: set the initial active theme
        active: themes[0].value,
        // optional: set the icon used in the toolbar
        icon: 'document'
      }
    });

    Install

    npm i @inki/storybook-addon-theme

    DownloadsWeekly Downloads

    0

    Version

    1.0.1

    License

    none

    Unpacked Size

    44 kB

    Total Files

    22

    Last publish

    Collaborators

    • aaike