pills.stories.js 567 B

12345678910111213141516171819202122
  1. import React from 'react';
  2. import {storiesOf} from '@storybook/react';
  3. import {withInfo} from '@storybook/addon-info';
  4. import Pills from 'app/components/pills';
  5. import Pill from 'app/components/pill';
  6. storiesOf('UI|Pills', module).add(
  7. 'all',
  8. withInfo('When you have key/value data but are tight on space.')(() => (
  9. <Pills>
  10. <Pill name="key" value="value" />
  11. <Pill name="good" value={true}>
  12. thing
  13. </Pill>
  14. <Pill name="bad" value={false}>
  15. thing
  16. </Pill>
  17. <Pill name="generic">thing</Pill>
  18. </Pills>
  19. ))
  20. );