circleIndicator.stories.js 626 B

1234567891011121314151617181920212223242526
  1. import React from 'react';
  2. import CircleIndicator from 'app/components/circleIndicator';
  3. export default {
  4. title: 'DataVisualization/CircleIndicator',
  5. component: CircleIndicator,
  6. args: {
  7. size: 14,
  8. enabled: false,
  9. },
  10. };
  11. export const Default = ({size, enabled}) => {
  12. return (
  13. <React.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. </React.Fragment>
  18. );
  19. };
  20. Default.storyName = 'CircleIndicator';