mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-02 13:00:18 -05:00
8bc374c916
[web] BS5 review panel new GitOrigin-RevId: c65d17d0053858bd74984ba746a620b89d900606
31 lines
860 B
TypeScript
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,
|
|
},
|
|
}
|