checkboxFancy.stories.js 697 B

123456789101112131415161718192021222324252627282930313233343536
  1. import React from 'react';
  2. import styled from '@emotion/styled';
  3. import CheckboxFancy from 'app/components/checkboxFancy/checkboxFancy';
  4. export default {
  5. title: 'Core/Style/Icons',
  6. component: CheckboxFancy,
  7. args: {
  8. size: 100,
  9. isChecked: true,
  10. },
  11. };
  12. export const _CheckboxFancy = ({size, isChecked}) => {
  13. return (
  14. <Container>
  15. <CheckboxFancy size={`${size}px`} isChecked={isChecked} />
  16. </Container>
  17. );
  18. };
  19. _CheckboxFancy.storyName = 'CheckboxFancy';
  20. _CheckboxFancy.parameters = {
  21. docs: {
  22. description: {
  23. story: 'A fancy looking checkbox',
  24. },
  25. },
  26. };
  27. const Container = styled('div')`
  28. display: flex;
  29. flex-direction: column;
  30. padding: 20px;
  31. `;