Skip to content

Kirby 3.6.6

Select field

<k-select-field>

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.

Have a look at <k-field>, <k-input> and <k-select-input> for additional information.

Props

Prop Type Default Description
after
string
ariaLabel
string
autofocus
boolean
before
string
counter
boolean|object
default
string
disabled
boolean
empty
boolean|string
true
The text, that is shown as the first empty option, when the field is not required.
endpoints
object
help
string
icon
string
"angle-down"
id
number|string
function() { return this._uid; }
input
string|number
invalid
boolean
label
string
name
number|string
novalidate
boolean
false
options
array
[]
placeholder
string
The text, that is shown when no option is selected yet.
required
boolean
theme
string
translate
boolean
type
string
value
string|number|boolean
""

Events

Event Description Passes
blur
focus

Slots

Slot Description
after
before
counter
default
footer
header
help
icon
label
options

Example

<k-select-field
    v-model="value"
    :options="[
        { value: 'a', text: 'Option A' },
        { value: 'b', text: 'Option B' }
    ]"
    :required="true"
    label="Select"
    name="select"
    help="This is a select field"
    @input="input"
/>

CSS classes

.k-select-field