Number Input
llms.txtExample
Usage
<NumberInput min={0} max={100} bind:value />
API Reference
NumberInput
A numeric input with animated value transitions. Uses number-flow for smooth animations.
Property Type Description
value $bindable
number
The current numeric value. Default:
50min
number
The minimum allowed value. Default:
0max
number
The maximum allowed value. Default:
999step
number
The step increment for the input. Default:
1defaultValue
number
The initial default value. Default:
0variant
enum
The visual variant. Default:
'primary'size
enum
The size of the input. Default:
'default'tabindex
number
The tabindex of the input. Default: —
class
string
Additional CSS classes to apply. Default: —
ref $bindable
HTMLDivElement
The underlying container DOM element. Default: —
inputRef $bindable
HTMLInputElement
Reference to the inner input element. Default: —
Property
value
min
max
step
defaultValue
variant
size
tabindex
class
ref
inputRef