mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-21 20:59:20 +00:00
test(text-input): assert value type
This commit is contained in:
parent
01054c4065
commit
bf918d38ab
1 changed files with 8 additions and 1 deletions
|
@ -1,8 +1,15 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { TextInput, TextInputSkeleton } from "../types";
|
import { TextInput, TextInputSkeleton } from "../types";
|
||||||
|
|
||||||
|
let value = null;
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<TextInput labelText="User name" placeholder="Enter user name..." />
|
<TextInput
|
||||||
|
type="number"
|
||||||
|
labelText="User name"
|
||||||
|
placeholder="Enter user name..."
|
||||||
|
bind:value
|
||||||
|
/>
|
||||||
|
|
||||||
<TextInput
|
<TextInput
|
||||||
labelText="User name"
|
labelText="User name"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue