Select
Select an item in a dropdown list. Use with Field to access all functionalities
Class props
Class prop | Description | Props | Suffixes | |
---|---|---|---|---|
arrowClass | Class of the select arrow. 👉 It applies the arrow icon using background-image and background-position on select element. An alternative to override it is iconRight prop (globally or not) | |||
expandedClass | Class of select when expanded. | expanded | ||
iconLeftClass | Class of the left icon. | icon | ||
iconLeftSpaceClass | Class of the left icon space inside the select. | icon | ||
iconRightClass | Class of the right icon. | iconRight | ||
iconRightSpaceClass | Class of the right icon space inside the select. | iconRight | ||
multipleClass | Class of the select when multiple mode is active. | multiple | ||
placeholderClass | Class of the select placeholder. | |||
rootClass | Class of the root element. | |||
roundedClass | Class of select when rounded. | rounded | ||
selectClass | Class of the native select element. | |||
sizeClass | Class of the select size. | size | small | |
variantClass | Class of the select variant. | variant | primary |
Select component
html
<o-select></o-select>
Props
Prop name | Description | Type | Values | Default |
---|---|---|---|---|
autocomplete | Native options to use in HTML5 validation | string | - | |
expanded | Makes input full width when inside a grouped or addon field | boolean | - | |
icon | Icon name to be added | string | - | |
iconPack | Icon pack to use | string | mdi , fa , fas and any other custom icon pack | From config: select: { |
iconRight | Icon name to be added on the right side | string | - | From config: select: { |
maxlength | Same as native maxlength, plus character counter | number|string | - | |
multiple | boolean | - | ||
nativeSize | Same as native size | string|number | - | |
override | boolean | - | ||
placeholder | Text when nothing is selected | string | - | |
rounded | Makes the element rounded | boolean | - | |
size | Vertical size of input, optional | string | small , medium , large | |
statusIcon | Show status icon using field and variant prop | boolean | - | From config: { |
useHtml5Validation | Enable html 5 native validation | boolean | - | From config: { |
v-model | string|number|boolean|object|array | - | null | |
validationMessage | The message which is shown when a validation error occurs | string | - | |
variant | Color of the control, optional | string | primary , info , success , warning , danger , and any other custom color |
Events
Event name | Properties | Description |
---|---|---|
blur | ||
focus | ||
invalid | ||
update:modelValue |
Slots
Name | Description | Bindings |
---|---|---|
default |
Sass variables
Current theme ➜ Oruga Base
SASS Variable | Default |
---|---|
$select-background-color | #fff |
$select-border-color | $grey-lighter |
$select-border-width | 1px |
$select-border-style | solid |
$select-border-radius | $base-border-radius |
$select-rounded-border-radius | $base-rounded-border-radius |
$select-box-shadow | none |
$select-color | #363636 |
$select-icon-zindex | 4 |
$select-height | $control-height |
$select-arrow-size | 1rem |
$select-line-height | $base-line-height |
$select-margin | 0 |
$select-max-width | 100% |
$select-width | 100% |
$select-placeholder-opacity | $base-disabled-opacity |
$select-padding | $control-padding-vertical $control-padding-horizontal |
See ➜ 📄 Full scss file
Current theme ➜ Oruga Full
SASS Variable | Default |
---|---|
$select-background-color | #fff |
$select-border-color | $grey-lighter |
$select-border-width | 1px |
$select-border-style | solid |
$select-border-radius | $base-border-radius |
$select-rounded-border-radius | $base-rounded-border-radius |
$select-box-shadow | none |
$select-color | #363636 |
$select-icon-zindex | 4 |
$select-height | $control-height |
$select-arrow-size | 1rem |
$select-line-height | $base-line-height |
$select-margin | 0 |
$select-max-width | 100% |
$select-width | 100% |
$select-placeholder-opacity | $base-disabled-opacity |
$select-padding | $control-padding-vertical $control-padding-horizontal |
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.