checkboxFancy.stories.js 694 B

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