mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-15 02:11:05 +00:00
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:
parent
95a4ead0e3
commit
865aeb0748
4 changed files with 18 additions and 40 deletions
|
@ -36,6 +36,11 @@
|
|||
</button>
|
||||
</div>
|
||||
{:else}
|
||||
<TextInput {...$$props} bind:value />
|
||||
<TextInput
|
||||
{...$$props}
|
||||
bind:value
|
||||
on:change={() => {
|
||||
console.log('change');
|
||||
}} />
|
||||
{/if}
|
||||
</Layout>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue