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
2022-02-18 08:35:59 +01:00

35 lines
877 B
JavaScript

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';
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,
},
};
export const decorators = [withRootAttribute];