refactor(text-input): remove dispatch, forward events

Supports #7

- Forward events, inline functions
- Add style prop
- Remove exported props
- Bind value for TextInput
This commit is contained in:
Eric Liu 2019-12-20 17:34:47 -08:00
commit 865aeb0748
4 changed files with 18 additions and 40 deletions

View file

@ -2,14 +2,14 @@
let className = undefined;
export { className as class };
export let hideLabel = false;
export let props = {};
export let style = undefined;
import { cx } from '../../lib';
const _class = cx('--form-item', className);
</script>
<div {...props} class={_class}>
<div on:click on:mouseover on:mouseenter on:mouseleave class={_class} {style}>
{#if !hideLabel}
<span class={cx('--label', '--skeleton')} />
{/if}