overleaf/services/web/frontend/stories/input-switch.stories.tsx
ilkin-overleaf 8bc374c916 Merge pull request #21115 from overleaf/ii-bs5-review-panel
[web] BS5 review panel new

GitOrigin-RevId: c65d17d0053858bd74984ba746a620b89d900606
2024-10-21 08:04:37 +00:00

31 lines
860 B
TypeScript

import OLFormSwitch from '@/features/ui/components/ol/ol-form-switch'
import { bsVersionDecorator } from '../../.storybook/utils/with-bootstrap-switcher'
import { disableControlsOf } from './utils/arg-types'
export const Unchecked = () => {
return <OLFormSwitch onChange={() => {}} checked={false} />
}
export const UncheckedDisabled = () => {
return <OLFormSwitch onChange={() => {}} checked={false} disabled />
}
export const Checked = () => {
return <OLFormSwitch onChange={() => {}} checked />
}
export const CheckedDisabled = () => {
return <OLFormSwitch onChange={() => {}} checked disabled />
}
export default {
title: 'Shared / Components / Input Switch',
component: OLFormSwitch,
argTypes: {
...bsVersionDecorator.argTypes,
...disableControlsOf('inputRef', 'bs3Props'),
},
args: {
...bsVersionDecorator.args,
},
}