mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-21 04:39:19 +00:00
test(number-input): assert updated value type
This commit is contained in:
parent
657d01c47c
commit
c54a98e193
1 changed files with 4 additions and 1 deletions
|
@ -1,11 +1,14 @@
|
|||
<script lang="ts">
|
||||
import { NumberInput, NumberInputSkeleton } from "../types";
|
||||
import type { NumberInputProps } from "../types/NumberInput/NumberInput.svelte";
|
||||
|
||||
let value: NumberInputProps["value"] = null;
|
||||
</script>
|
||||
|
||||
<NumberInput
|
||||
label="Clusters"
|
||||
on:change="{(e) => {
|
||||
console.log(e.detail); // number
|
||||
console.log(e.detail); // null | number
|
||||
}}"
|
||||
/>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue