import {useState} from 'react'; import {action} from '@storybook/addon-actions'; import MultipleCheckbox from 'sentry/components/forms/controls/multipleCheckbox'; export default { title: 'Components/Forms/Controls/Multiple Checkbox', component: MultipleCheckbox, args: { disabled: false, name: 'multiple-checkbox-example', }, }; export const _MultipleCheckbox = ({...args}) => { const [value, setValue] = useState(['bar']); return ( { setValue(newValue); action('MultipleCheckbox change')(newValue, e); }} {...args} > Foo Bar Baz Quux ); }; _MultipleCheckbox.storyName = 'Multiple Checkbox'; _MultipleCheckbox.parameters = { docs: { description: { story: 'Multiple Checkbox Control (controlled only atm)', }, }, };