How to use the themeprovider-storybook.withThemesProvider function in themeprovider-storybook

To help you get started, we’ve selected a few themeprovider-storybook examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github akeneo / pim-community-dev / akeneo-design-system / .storybook / preview.tsx View on Github external
import React from 'react';
import {addDecorator, addParameters} from '@storybook/react';
import { withThemesProvider } from "themeprovider-storybook";
import {StoryStyle} from '../src/shared/global';
import {pimTheme} from '../src/theme/pim';

addDecorator(story => (
  <>
    {story()}
  
));

addDecorator(withThemesProvider([pimTheme]))

addParameters({
  viewMode: 'docs',
});

themeprovider-storybook

Use your styled-components themes on your favourite storybook

MIT
Latest version published 3 years ago

Package Health Score

48 / 100
Full package analysis

Popular themeprovider-storybook functions