input-switch.stories.tsx 681 B

1234567891011121314151617181920212223242526
  1. import OLFormSwitch from '@/features/ui/components/ol/ol-form-switch'
  2. import { disableControlsOf } from './utils/arg-types'
  3. export const Unchecked = () => {
  4. return <OLFormSwitch onChange={() => {}} checked={false} />
  5. }
  6. export const UncheckedDisabled = () => {
  7. return <OLFormSwitch onChange={() => {}} checked={false} disabled />
  8. }
  9. export const Checked = () => {
  10. return <OLFormSwitch onChange={() => {}} checked />
  11. }
  12. export const CheckedDisabled = () => {
  13. return <OLFormSwitch onChange={() => {}} checked disabled />
  14. }
  15. export default {
  16. title: 'Shared / Components / Input Switch',
  17. component: OLFormSwitch,
  18. argTypes: {
  19. ...disableControlsOf('inputRef'),
  20. },
  21. }