import * as React from 'react'; import type { JSXElement } from '@fluentui/react-components'; import { makeStyles, ToggleButton } from '@fluentui/react-components'; const useStyles = makeStyles({ wrapper: { columnGap: '15px', display: 'flex', minWidth: 'min-content', }, }); export const Checked = (): JSXElement => { const styles = useStyles(); return (
Controlled checked state Controlled unchecked state
); }; Checked.parameters = { docs: { description: { story: `A toggle button can be checked or unchecked. Unchecked is default. If a checked value is given, the button is 'controlled' and will only change state when the props value changes.`, }, }, };