mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-18 11:36:36 +00:00
Updated TextInput.test
; added forgotten files from previous
This commit is contained in:
parent
6d9f45b107
commit
a5c93a371d
3 changed files with 91 additions and 84 deletions
|
@ -5,13 +5,13 @@
|
|||
</script>
|
||||
|
||||
<TextInput
|
||||
type="number"
|
||||
labelText="User name"
|
||||
placeholder="Enter user name..."
|
||||
bind:value
|
||||
on:input="{(e) => console.log(e.detail)}"
|
||||
on:change="{(e) => (value = e.detail)}"
|
||||
bind:value="{value}"
|
||||
on:input="{(e) => console.log(e)}"
|
||||
on:change="{(e) => (value = e)}"
|
||||
on:paste="{(e) => console.log(e)}"
|
||||
inputAttributes="{{ type: 'number' }}"
|
||||
/>
|
||||
|
||||
<TextInput
|
||||
|
@ -20,6 +20,13 @@
|
|||
placeholder="Enter user name..."
|
||||
/>
|
||||
|
||||
<TextInput
|
||||
labelText="Username"
|
||||
placeholder="Enter username..."
|
||||
maxCount="{32}"
|
||||
counter
|
||||
/>
|
||||
|
||||
<TextInput hideLabel labelText="User name" placeholder="Enter user name..." />
|
||||
|
||||
<TextInput light labelText="User name" placeholder="Enter user name..." />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue