Skip to content

Number Field

A number input with increment and decrement buttons.

Examples

Default

vue
<NumberField>
  <NumberFieldContent>
    <NumberFieldDecrement />
    <NumberFieldInput />
    <NumberFieldIncrement />
  </NumberFieldContent>
</NumberField>

Props

NumberField

PropTypeDefaultDescription
defaultValuenumber-The default value of the number field.
modelValuenumber-The controlled value of the number field.
minnumber-The minimum value.
maxnumber-The maximum value.
stepnumber1The step value.
formatOptionsIntl.NumberFormatOptions-The number format options.

Slots

NumberField

SlotDescription
defaultThe content of the number field.

NumberFieldInput

SlotDescription
defaultThe input content.

NumberFieldIncrement

SlotDescription
defaultThe increment button content.

NumberFieldDecrement

SlotDescription
defaultThe decrement button content.