UNPKG

@retailmenot/anchor

Version:

A React UI Library by RetailMeNot

20 lines 853 B
// REACT import * as React from 'react'; // STORYBOOK import { storiesOf } from '@storybook/react'; import { boolean } from '@storybook/addon-knobs'; import { ThemeProvider } from '@xstyled/styled-components'; // ANCHOR import { RootTheme } from '../../theme/index'; // SUBJECT import * as README from './README.md'; import { Checkbox } from './Checkbox.component'; const { useState } = React; storiesOf('Components/Form/Checkbox', module) .addParameters({ readme: { sidebar: README } }) .add('Default', () => React.createElement(() => { const [checked, setChecked] = useState(true); return (React.createElement(ThemeProvider, { theme: RootTheme }, React.createElement(Checkbox, { checked: checked, disabled: boolean('disabled', false), onChange: () => setChecked(!checked) }))); })); //# sourceMappingURL=Checkbox.stories.js.map