mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 09:51:06 +08:00
11 lines
366 B
TypeScript
11 lines
366 B
TypeScript
import * as React from 'react';
|
|
import { configure, storiesOf } from '@storybook/react';
|
|
|
|
configure(() => {
|
|
storiesOf('Component 1', module).add('Story 1', () => <div>Component 1 - Story 1</div>);
|
|
|
|
storiesOf('Component 2', module)
|
|
.add('Story 1', () => <div>Category 2 - Story 1</div>)
|
|
.add('Story 2', () => <div>Category 2 - Story 2</div>);
|
|
}, module);
|