storybook/examples/official-storybook/stories/addon-centered.stories.js

10 lines
318 B
JavaScript

import React from 'react';
import { storiesOf } from '@storybook/react';
import centered from '@storybook/addon-centered';
import BaseButton from '../components/BaseButton';
storiesOf('Addons|Centered', module)
.addDecorator(centered)
.add('story 1', () => <BaseButton label="This story should be centered" />);