NumberInput
A numeric field with decrement and increment buttons and optional unit.
beta
API
import NumberInput from '@tcpsystems/ui/foundation/NumberInput';| Prop | Type | Default |
|---|---|---|
kind? | 'mono' | none |
describedby? | string | none |
invalid? | 'true' | none |
value? | native | $bindable() |
min? | number | string | none |
max? | number | string | none |
step? | number | string | 1 |
unit? | string | none |
decrementLabel? | string | 'Decrease' |
incrementLabel? | string | 'Increase' |
disabled? | native | none |
readonly? | native | none |
| Hook | Kind |
|---|---|
.tcp-number | Root class |
data-dir | Data attribute |
data-kind | Data attribute |