pills.stories.js 549 B

12345678910111213141516171819202122232425262728
  1. import Pill from 'sentry/components/pill';
  2. import Pills from 'sentry/components/pills';
  3. export default {
  4. title: 'Components/Pills',
  5. };
  6. export const Default = () => (
  7. <Pills>
  8. <Pill name="key" value="value" />
  9. <Pill name="good" value>
  10. thing
  11. </Pill>
  12. <Pill name="bad" value={false}>
  13. thing
  14. </Pill>
  15. <Pill name="generic">thing</Pill>
  16. </Pills>
  17. );
  18. Default.storyName = 'Pills';
  19. Default.parameters = {
  20. docs: {
  21. description: {
  22. story: 'When you have key/value data but are tight on space.',
  23. },
  24. },
  25. };