1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/website/.storybook/preview.js

35 lines
877 B
JavaScript
Raw Normal View History

2022-02-17 12:30:49 +01:00
import '../src/css/custom.css';
import '../node_modules/infima/dist/css/default/default.css';
import '../node_modules/@docusaurus/theme-classic/lib/admonitions.css';
import { withRootAttribute } from 'storybook-addon-root-attribute';
2022-02-17 12:30:49 +01:00
export const parameters = {
actions: { argTypesRegex: '^on[A-Z].*' },
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/,
},
},
layout: 'fullscreen',
// add docusaurus theming to storybook iframes
rootAttribute: {
root: 'html',
attribute: 'data-theme',
defaultState: {
name: 'Light',
value: 'light',
},
states: [
{
name: 'Dark',
value: 'dark',
},
],
tooltip: true,
},
2022-02-17 12:30:49 +01:00
};
export const decorators = [withRootAttribute];