1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import React from 'react';
import Badge from './Badge';
import Icon from '../Icon';

export default {
  title: 'Components|Badge',
  component: Badge,
};

export const all = () => (
  <div>
    <Badge status="positive">Positive</Badge>
    <Badge status="negative">Negative</Badge>
    <Badge status="neutral">Neutral</Badge>
    <Badge status="error">Error</Badge>
    <Badge status="warning">Warning</Badge>
  </div>
);

export const withIcon = () => ( <Badge status="warning"> <Icon icon="check" inline /> with icon </Badge> );
withIcon.story = { name: 'with icon', };