UI Library

NumberInput

Default

value: 5

Props

PropTypeDefaultNotes
valuestringBindable field value.
minnumberLower clamp on blur and step.
maxnumberUpper clamp on blur and step.
stepnumber1Arrow/wheel step; decimals preserved.
placeholderstringNative placeholder.
disabledbooleanfalseDisables the input and steppers.
classNamestring''Extra classes for the input.
showControlsbooleantrueRenders the stepper buttons.
inputStylestringInline style for the input; widths the field when steppers are hidden.
idstringNative input id.
ariaLabelstringRequired accessible name.
incrementLabelstringlocaleAccessible name for the up button.
decrementLabelstringlocaleAccessible name for the down button.
onkeydown(event: KeyboardEvent) => voidKeydown callback.
oninput(event: Event) => voidInput callback.
onblur(event: FocusEvent) => voidBlur callback.