mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
29 lines
829 B
TypeScript
29 lines
829 B
TypeScript
|
import { Switcher, SwitcherItem } from '../js/shared/components/switcher'
|
||
|
|
||
|
export const Base = () => {
|
||
|
return (
|
||
|
<Switcher name="figure-width" defaultValue="0.5">
|
||
|
<SwitcherItem value="0.25" label="¼ width" />
|
||
|
<SwitcherItem value="0.5" label="½ width" />
|
||
|
<SwitcherItem value="0.75" label="¾ width" />
|
||
|
<SwitcherItem value="1.0" label="Full width" />
|
||
|
</Switcher>
|
||
|
)
|
||
|
}
|
||
|
|
||
|
export const Disabled = () => {
|
||
|
return (
|
||
|
<Switcher name="figure-width" defaultValue="0.5" disabled>
|
||
|
<SwitcherItem value="0.25" label="¼ width" />
|
||
|
<SwitcherItem value="0.5" label="½ width" />
|
||
|
<SwitcherItem value="0.75" label="¾ width" />
|
||
|
<SwitcherItem value="1.0" label="Full width" />
|
||
|
</Switcher>
|
||
|
)
|
||
|
}
|
||
|
|
||
|
export default {
|
||
|
title: 'Shared / Components / Switcher',
|
||
|
component: Switcher,
|
||
|
}
|