diff --git a/docs/src/pages/components/NumberInput.svx b/docs/src/pages/components/NumberInput.svx index 923fab25..ea017fe3 100644 --- a/docs/src/pages/components/NumberInput.svx +++ b/docs/src/pages/components/NumberInput.svx @@ -19,6 +19,14 @@ components: ["NumberInput", "NumberInputSkeleton"] +### No value + +Set `allowEmpty` to `true` to allow for no value. + +Set `value` to `null` to denote "no value." + + + ### Hidden label diff --git a/docs/src/pages/framed/NumberInput/NumberInputEmpty.svelte b/docs/src/pages/framed/NumberInput/NumberInputEmpty.svelte new file mode 100644 index 00000000..cc76a330 --- /dev/null +++ b/docs/src/pages/framed/NumberInput/NumberInputEmpty.svelte @@ -0,0 +1,15 @@ + + + + +
+ + +
+ +Value: +{value}