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

Readme

Keywords

none

Package Sidebar

Install

npm i @fluentui/storybook

Weekly Downloads

38

Version

0.6.22

License

MIT

Unpacked Size

67.8 kB

Total Files

141

Last publish

Collaborators

  • sopranopillow
  • microsoft1es
  • justslone
  • chrisdholt
  • miroslavstastny
  • levithomason
  • uifabricteam
  • uifrnbot
  • dzearing
  • layershifter
  • ling1726
  • travisspomer