@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);