import React, {useState} from 'react' import {centerLayoutDecorator} from '../.storybook/decorators' import {Checkbox} from './checkbox' export default { component: Checkbox, title: 'Input|Checkbox', decorators: [centerLayoutDecorator()] } export const Standard = () => {}} /> export const Checked = () => {}} /> export const Disabled = () => ( {}} disabled /> ) export const DisabledAndChecked = () => ( {}} disabled /> ) export const Interactive = () => { const [isChecked, setChecked] = useState(false) return ( setChecked(event.currentTarget.checked)} /> ) }