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

@ -36,6 +36,11 @@
</button>
</div>
{:else}
<TextInput {...$$props} bind:value />
<TextInput
{...$$props}
bind:value
on:change={() => {
console.log('change');
}} />
{/if}
</Layout>