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,20 @@
import * as React from 'react';
import { StoryRow } from './StoryRow';
import { LabeledInput } from './LabeledInput';
import { storiesOf } from '@storybook/react';
import { text } from '@storybook/addon-knobs';
storiesOf('Sticker Creator/elements', module).add('LabeledInput', () => {
const child = text('label', 'foo bar');
const placeholder = text('placeholder', 'foo bar');
const [value, setValue] = React.useState('');
return (
<StoryRow>
<LabeledInput value={value} onChange={setValue} placeholder={placeholder}>
{child}
</LabeledInput>
</StoryRow>
);
});