mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-05 16:11:33 +08:00
11 lines
333 B
JavaScript
11 lines
333 B
JavaScript
import React from 'react';
|
|
import { storiesOf } from '@storybook/react';
|
|
|
|
storiesOf('root|group/component', module).add('variant 1', () => <div>This is variant 1</div>);
|
|
|
|
storiesOf('addons|parameter', module)
|
|
.addParameters({
|
|
parameter: ['foo', 'bar', 'baz'],
|
|
})
|
|
.add('with parameter', () => <div>This is variant 1</div>);
|