Add preview components

This commit is contained in:
Jorik Schellekens
2020-08-06 16:38:26 +01:00
parent eeb119ecb3
commit ba90c5558d
20 changed files with 716 additions and 8 deletions
+5 -3
View File
@@ -5,13 +5,15 @@ import { withKnobs } from '@storybook/addon-knobs';
import { withDesign } from 'storybook-addon-designs'
import { addParameters } from '@storybook/react';
import SingleColumn from '../src/layouts/SingleColumn';
// Default styles
import "../src/index.scss";
addDecorator(
storyFn => <div style={{ textAlign: 'center' }}>{storyFn()}</div>
storyFn => <SingleColumn>{storyFn()}</SingleColumn>
);
addDecorator(withA11y);
@@ -22,7 +24,7 @@ addDecorator(withDesign);
addParameters({
backgrounds: [
{name: 'light', value: '#F4F4F4'},
{name: 'white', value: '#FFFFFF', default: true},
{name: 'light', value: '#F4F4F4', default: true},
{name: 'white', value: '#FFFFFF'},
],
});