BaseSelect

Select shapes

The select component can have different shapes. Here is an example of a rounded select.

Default shape of all <BaseSelect> can be set in your .app/app.config.ts.
Show code

Icons

Selects can have a configurable icon on the left side using the icon prop. Make sure to pick meaningful icons for your use case.

Show code

Float labels

Selects can have a material design style floating label using the labelFloat prop.

Show code

Sizes

Selects can have different sizes like a smaller and a larger one using the size prop. accepted values are sm, md and lg.

Show code

Option group

Selects can have option groups using the optgroup element to wrap your options.

Show code

Loading state

Selects can be shown in a loading state using the loading prop.

Show code

Error state

Selects can be shown in an error state using the error prop. Use the same prop to display an error message.

Please make a selection
Show code
v-model
The value of the selected option.
Show example
size
The size of the select input.
Show example
icon
An icon to display in the select input.
Show example
label
The label text for the select input.
Show example
id
The form input identifier.
Show example
shape
The shape of the select input. Can be one of 'straight', 'rounded', 'curved', or 'full'.
Show example
error
An error message to display, or a boolean indicating whether there is an error.
Show example
classes
Classes to apply to the select input.
Show example
contrast
The contrast of the select input.
Show example
placeholder
Empty option text added to the beginning of the select input.
Show example
disabled
Whether the select input is disabled.
Show example
loading
Whether the select input is in a loading state.
Show example
label-float
If the label should be floating.
Show example
readonly
Whether the select input is read-only.
Show example
#label
Show example
#default
Show example
#icon
Show example
el
The underlying HTMLInputElement element.
Show example