feat(components): add Form, FormGroup, FormItem, FormLabel

Supports #17

Fixes broken storybook.

TODO: Define stories using other components (e.g. NumberInput, Select...)
This commit is contained in:
Eric Liu 2019-12-22 08:53:50 -08:00
commit 3be285e112
18 changed files with 248 additions and 1 deletions

View file

@ -0,0 +1,14 @@
<script>
let className = undefined;
export { className as class };
export let id = Math.random();
export let style = undefined;
import { cx } from '../../lib';
const _class = cx('--form-item', className);
</script>
<label for={id} class={_class} {style}>
<slot />
</label>