Sticker Creator

This commit is contained in:
Ken Powers
2019-12-17 15:25:57 -05:00
committed by Scott Nonnenberg
parent 2df1ba6e61
commit 11d47a8eb9
123 changed files with 11287 additions and 1714 deletions

View File

@@ -0,0 +1,19 @@
import * as React from 'react';
import { StoryRow } from './StoryRow';
import { LabeledCheckbox } from './LabeledCheckbox';
import { storiesOf } from '@storybook/react';
import { text } from '@storybook/addon-knobs';
storiesOf('Sticker Creator/elements', module).add('Labeled Checkbox', () => {
const child = text('label', 'foo bar');
const [checked, setChecked] = React.useState(false);
return (
<StoryRow>
<LabeledCheckbox value={checked} onChange={setChecked}>
{child}
</LabeledCheckbox>
</StoryRow>
);
});