|
1 | 1 | /* eslint-disable import/no-extraneous-dependencies */ |
2 | 2 | import React from 'react'; |
3 | | -import { storiesOf } from '@storybook/react'; |
4 | | -import centered from '@storybook/addon-centered'; |
5 | 3 | import { Tag } from '../src'; |
6 | 4 |
|
7 | | -const stories = storiesOf('Tag', module); |
| 5 | +export const StandardTag = () => <Tag>Active</Tag>; |
8 | 6 |
|
9 | | -stories |
10 | | - .addDecorator(centered) |
11 | | - .add('Standard Tag', () => <Tag>Active</Tag>) |
12 | | - .add('All Colours', () => ( |
13 | | - <div className="tag-wrapper"> |
14 | | - <Tag color="white">Started</Tag> |
15 | | - <Tag color="grey">Not started</Tag> |
16 | | - <Tag color="green">New</Tag> |
17 | | - <Tag color="aqua-green">Active</Tag> |
18 | | - <Tag color="blue">Pending</Tag> |
19 | | - <Tag color="purple">Received</Tag> |
20 | | - <Tag color="pink">Sent</Tag> |
21 | | - <Tag color="red">Rejected</Tag> |
22 | | - <Tag color="orange">Declined</Tag> |
23 | | - <Tag color="yellow">Delayed</Tag> |
24 | | - </div> |
25 | | - )); |
| 7 | +export const AllColours = () => ( |
| 8 | + <div className="tag-wrapper"> |
| 9 | + <Tag color="white">Started</Tag> |
| 10 | + <Tag color="grey">Not started</Tag> |
| 11 | + <Tag color="green">New</Tag> |
| 12 | + <Tag color="aqua-green">Active</Tag> |
| 13 | + <Tag color="blue">Pending</Tag> |
| 14 | + <Tag color="purple">Received</Tag> |
| 15 | + <Tag color="pink">Sent</Tag> |
| 16 | + <Tag color="red">Rejected</Tag> |
| 17 | + <Tag color="orange">Declined</Tag> |
| 18 | + <Tag color="yellow">Delayed</Tag> |
| 19 | + </div> |
| 20 | +); |
| 21 | + |
| 22 | +export default { |
| 23 | + title: 'Components/Tag', |
| 24 | + component: Tag, |
| 25 | +}; |
0 commit comments