Skip to content

Kirby 3.9.8

Number input

<k-number-input>

This UI component hasn't been finalized yet. The functionality and syntax aren't stable and might be redone in an upcoming release. Only use it at your own risk - breaking changes are likely to occur.

<k-input v-model="number" name="number" type="number" />

Props

Prop Type Default Description
autofocus
boolean
disabled
boolean
id
number|string
function() { return this._uid; }
max
number
min
number
name
number|string
placeholder
string
preselect
boolean
required
boolean
step
number
The amount to increment with each input step. This can be a decimal.
value
number|string
null

Events

Event Description Passes
input
invalid
  • undefined

CSS classes

.k-number-input