progressBar.stories.js 577 B

123456789101112131415161718192021222324252627
  1. import styled from '@emotion/styled';
  2. import ProgressBar from 'sentry/components/progressBar';
  3. import space from 'sentry/styles/space';
  4. export default {
  5. title: 'Components/Data Visualization/Charts/Progress Bar',
  6. component: ProgressBar,
  7. };
  8. export function _ProgressBar() {
  9. const progressBars = [];
  10. for (let i = 100; i > 0; i -= 10) {
  11. progressBars.push(<ProgressBar value={i} />);
  12. }
  13. return <Wrapper>{progressBars}</Wrapper>;
  14. }
  15. _ProgressBar.storyName = 'Progress Bar';
  16. const Wrapper = styled('div')`
  17. width: 200px;
  18. display: grid;
  19. gap: ${space(3)};
  20. `;