import * as React from 'react'; import { boolean } from '@storybook/addon-knobs'; import { State, Store } from '@sambego/storybook-state'; import Checkbox from './Checkbox'; import notes from './Checkbox.stories.md'; export const basic = () => ( ); export const controlled = () => { const componentStore = new Store({ isChecked: false }); const handleChange = () => componentStore.set({ isChecked: !componentStore.get('isChecked') }); return ( {state => (
)}
); }; export const disabled = () => ( ); export const withTooltip = () => ( ); export const withSubsection = () => ( } /> ); export default { title: 'Components|Checkbox', component: Checkbox, parameters: { notes, }, };