mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 10:03:43 -05:00
35728d7681
[web] BS5 editor toolbar GitOrigin-RevId: a517fd52d648d165e89231d6f5551c026a951c43
55 lines
1.6 KiB
TypeScript
55 lines
1.6 KiB
TypeScript
import OLToggleButton from '@/features/ui/components/ol/ol-toggle-button'
|
|
import OLToggleButtonGroup from '@/features/ui/components/ol/ol-toggle-button-group'
|
|
|
|
export const Base = () => {
|
|
return (
|
|
<OLToggleButtonGroup
|
|
type="radio"
|
|
name="figure-width"
|
|
defaultValue="0.5"
|
|
aria-label="Image width"
|
|
>
|
|
<OLToggleButton variant="secondary" id="width-25p" value="0.25">
|
|
¼ width
|
|
</OLToggleButton>
|
|
<OLToggleButton variant="secondary" id="width-50p" value="0.5">
|
|
½ width
|
|
</OLToggleButton>
|
|
<OLToggleButton variant="secondary" id="width-75p" value="0.75">
|
|
¾ width
|
|
</OLToggleButton>
|
|
<OLToggleButton variant="secondary" id="width-100p" value="1.0">
|
|
Full width
|
|
</OLToggleButton>
|
|
</OLToggleButtonGroup>
|
|
)
|
|
}
|
|
|
|
export const Disabled = () => {
|
|
return (
|
|
<OLToggleButtonGroup
|
|
type="radio"
|
|
name="figure-width"
|
|
defaultValue="0.5"
|
|
aria-label="Image width"
|
|
>
|
|
<OLToggleButton variant="secondary" id="width-25p" disabled value="0.25">
|
|
¼ width
|
|
</OLToggleButton>
|
|
<OLToggleButton variant="secondary" id="width-50p" disabled value="0.5">
|
|
½ width
|
|
</OLToggleButton>
|
|
<OLToggleButton variant="secondary" id="width-75p" disabled value="0.75">
|
|
¾ width
|
|
</OLToggleButton>
|
|
<OLToggleButton variant="secondary" id="width-100p" disabled value="1.0">
|
|
Full width
|
|
</OLToggleButton>
|
|
</OLToggleButtonGroup>
|
|
)
|
|
}
|
|
|
|
export default {
|
|
title: 'Shared / Components / Toggle Button Group',
|
|
component: OLToggleButtonGroup,
|
|
}
|