Nitrogen Pumpkin Mulch

    css-stylesheet-switcher

    1.0.0 • Public • Published

    CSS Stylesheet selector


    Easily add additional stylesheets to switch between your stories.

    Install


    npm i css-stylesheet-switcher
    

    Usage


    import { addParameters } from '@storybook/react';
    
    addParameters({
        themeStylesheetSelector: {
            stylesheets: [
                {
                    id: 'Theme 1',
                    title: 'Theme 1',
                    url: 'css/someCss1.css'
                },
                {
                    id: 'Theme 2',
                    title: 'Theme 2',
                    url: 'css/someCss2.css'
                }
            ]
        }
    });
    

    Install

    npm i css-stylesheet-switcher

    DownloadsWeekly Downloads

    3

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    4.95 kB

    Total Files

    6

    Last publish

    Collaborators

    • mploetz