# Select

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

edit on github

# Examples

# Base

# Props

Prop name Description Type Values Default
expanded Makes input full width when inside a grouped or addon field boolean -
rounded Makes the element rounded boolean -
icon Icon name to be added string -
iconPack Icon pack to use string mdi, fa, fas and any other custom icon pack
autocomplete Native options to use in HTML5 validation string -
maxlength Same as native maxlength, plus character counter number|string -
useHtml5Validation Enable html 5 native validation boolean - Config -> "useHtml5Validation": true
statusIcon Show status icon using field and variant prop boolean - Config -> "statusIcon": true
validationMessage The message which is shown when a validation error occurs string -
size Vertical size of input, optional string small, medium, large
iconRight Icon name to be added on the right side string - Config -> 'select.iconRight': 'caret-down'
placeholder Text when nothing is selected string -
multiple boolean -
nativeSize Same as native size string|number -
rootClass string -
controlExpandedClass string -
controlIconLeftClass string -
controlIconRightClass string -
roundedClass string -
multipleClass string -
emptyClass string -
expandedClass string -
iconLeftClass string -
iconRightClass string -
sizeClass string -
variantClass string -

# Events

Event name Type Description
blur undefined
focus undefined

# Slots

Name Description Bindings

# Style

CSS Variable SASS Variable Default
--oruga-select-background-color $select-background-color #fff
--oruga-select-border-color $select-border-color $grey-lighter
--oruga-select-border-width $select-border-width 1px
--oruga-select-border-style $select-border-style solid
--oruga-select-border-radius $select-border-radius $base-border-radius
--oruga-select-box-shadow $select-box-shadow none
--oruga-select-color $select-color #363636
--oruga-select-control-icon-zindex $select-control-icon-zindex 4
--oruga-select-control-icon-color $select-control-icon-color $grey-lighter
--oruga-select-empty-color $select-empty-color rgba($grey, 0.7)
--oruga-select-font-size $select-font-size $base-font-size
--oruga-select-height $select-height $control-height
--oruga-select-line-height $select-line-height $base-line-height
--oruga-select-margin $select-margin 0
--oruga-select-max-width $select-max-width 100%
--oruga-select-optgroup-color $select-optgroup-color $grey-light
--oruga-select-optgroup-font-style $select-optgroup-font-style normal
--oruga-select-optgroup-font-weight $select-optgroup-font-weight 500
--oruga-select-optgroup-padding $select-optgroup-padding 0.25em 0
--oruga-select-option-color $select-option-color #4a4a4a
--oruga-select-option-disabled-opacity $select-option-disabled-opacity $base-disabled-opacity
--oruga-select-option-padding $select-option-padding .25em .5em
--oruga-select-padding $select-padding $control-padding-vertical $control-padding-horizontal