circleIndicator.stories.js 641 B

1234567891011121314151617181920212223242526
  1. import {Fragment} from 'react';
  2. import CircleIndicator from 'sentry/components/circleIndicator';
  3. export default {
  4. title: 'Components/Data Visualization/Misc/Circle Indicator',
  5. component: CircleIndicator,
  6. args: {
  7. size: 14,
  8. enabled: false,
  9. },
  10. };
  11. export const Default = ({size, enabled}) => {
  12. return (
  13. <Fragment>
  14. <CircleIndicator style={{marginRight: 12}} size={size} enabled={enabled} />
  15. <CircleIndicator style={{marginRight: 12}} size={size} enabled={!enabled} />
  16. <CircleIndicator size={size} enabled={enabled} color="purple300" />
  17. </Fragment>
  18. );
  19. };
  20. Default.storyName = 'Circle Indicator';