Toggle Sidebar B
AppearanceLight & dark mode D

Number Field

Compose a numeric input from primitives: NumberField + NumberFieldContent + Increment/Decrement buttons + NumberFieldInput. Use when you need a different layout than the bundled InputNumber.

Default

Inline +/- with the input in the middle.

Replay preview

With bounds

Constrain the value with min, max, and step.

Replay preview

Disabled

Pass disabled to block the input and step buttons.

Replay preview

API Reference

NumberField

PropTypeDefaultDescription
modelValuenumberCurrent value. Supports v-model.
minnumberMinimum value.
maxnumberMaximum value.
stepnumber1Increment / decrement step.
disabledbooleanfalseDisable the field.
EventDescription
update:modelValueFires with the new number. Enables v-model.

NumberFieldInput

PropTypeDefaultDescription
classstringThe editable number input. Forwards to reka-ui NumberFieldInput.

NumberFieldIncrement / NumberFieldDecrement

PropTypeDefaultDescription
classstringStep buttons. Default slot overrides the +/- icon. Forwards to reka-ui.

NumberFieldContent

PropTypeDefaultDescription
classstringRow wrapper that groups the input with the step buttons.