Nostradamus Predicting Maelstroms
    Wondering what’s next for npm?Check out our public roadmap! »

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

    0.6.22 • Public • Published

    @fluentui/storybook

    Storybook addons for Fluent UI React

    Addons

    Learn more about storybook addons here.

    Decorator: withStrictMode

    This adds a knob for wrapping a story in React.StrictMode.

    import { addDecorator } from '@storybook/react';
    import { withStrictMode } from '@fluentui/storybook';
    
    addDecorator(withStrictMode);

    Decorator: withThemeProvider

    This adds Theme knob which allows selecting different theme to provide to components via ThemeProvider.

    import { addDecorator } from '@storybook/react';
    import { withThemeProvider } from '@fluentui/storybook';
    
    addDecorator(withThemeProvider);

    Keywords

    none

    Install

    npm i @fluentui/storybook

    DownloadsWeekly Downloads

    174

    Version

    0.6.22

    License

    MIT

    Unpacked Size

    67.8 kB

    Total Files

    141

    Last publish

    Collaborators

    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar
    • avatar