badge.stories.js 412 B

12345678910111213141516171819202122232425
  1. import Badge from 'sentry/components/badge';
  2. export default {
  3. title: 'Components/Badges/Badge',
  4. component: Badge,
  5. parameters: {
  6. controls: {hideNoControlsWarning: true},
  7. },
  8. };
  9. export const _Badge = () => (
  10. <div>
  11. <div>
  12. Normal <Badge text="0" />
  13. </div>
  14. </div>
  15. );
  16. _Badge.parameters = {
  17. docs: {
  18. description: {
  19. story: 'Used to display numbers in a "badge"',
  20. },
  21. },
  22. };