Skip to content

Select

Select an item in a dropdown list. Use with Field to access all functionalities

Examples

Base

Show code

Grouped

Show code

Multiple

Show code

Sizes

Show code

Variants

Show code

With Icons

Show code

Class props

'Classes applied to the element'

Select component

Select an item in a dropdown list. Use with Field to access all functionalities

html
<o-select></o-select>

Props

Prop nameDescriptionTypeValuesDefault
autocomplete-
From config:
select: {
  autocomplete: "off"
}
customValidation-""
disabled-false
expanded-false
icon-
From config:
select: {
  icon: undefined
}
iconClickable-false
iconPack-
From config:
select: {
  iconPack: undefined
}
iconRight-
From config:
select: {
  iconRight: undefined
}
iconRightClickable-false
iconRightVariant-
id-Default function (see source code)
v-model-null
nativeSize-
options-
override-
placeholder-
required-false
rounded-false
size-
From config:
select: {
  size: undefined
}
statusIcon-
From config:
{
  statusIcon: true
}
useHtml5Validation-
From config:
{
  useHtml5Validation: true
}
variant-
From config:
select: {
  variant: undefined
}

Events

Event namePropertiesDescription
update:modelValuevalue string | number | boolean | object | array - updated modelValue propmodelValue prop two-way binding
focusevent Event - native eventon input focus event
blurevent Event - native eventon input blur event
invalidevent Event - native eventon input invalid event
icon-clickevent Event - native eventon icon click event
icon-right-clickevent Event - native eventon icon right click event

Slots

NameDescriptionBindings
placeholderOverride the placeholder
defaultOverride the options, default is options prop

Sass variables

Current theme ➜ Oruga

SASS VariableDefault
$select-background-color#fff
$select-border-colorvar(--#{$prefix}grey-lighter)
$select-border-stylesolid
$select-border-width1px
$select-border-radiusvar(--#{$prefix}base-border-radius)
$select-rounded-border-radiusvar( --#{$prefix}base-border-radius-rounded)
$select-box-shadow$control-box-shadow
$select-color#363636
$select-icon-zindex4
$select-height$control-height
$select-line-heightvar(--#{$prefix}base-line-height)
$select-margin0
$select-padding$control-padding-vertical $control-padding-horizontal
$select-arrow-color$select-color
$select-arrow-size1rem
$select-placeholder-opacityvar(--#{$prefix}base-disabled-opacity)

See ➜ 📄 Full scss file

Current theme ➜ Bulma

The theme does not have any custom variables for this component.

Current theme ➜ Bootstrap

The theme does not have any custom variables for this component.

Released under the MIT License.