Overview

Who are you?

Value: {}

A select dropdown component that allows users to select an item from a range of options. The options are specified with a value and a label for that value to display to the user. Additionally, the component can take slots to customize the display of each option.

Usage

Select dropdowns are used alongside form components such as text fields and radio selects. They can also be used to filter options in lists and tables.

Specifications

Default width:

  • As a filter for lists and tables: 150px
  • In a form: 300px

Increase or decrease this width to fit appropriately with other components in forms or filter groups.

The select label should be very short and descriptive. Stick to using one word to describe the field, if possible.

Guidelines

Consider using a select when there are 4 or more options available to select for a field. With fewer options, consider using radios or checkboxes.

Forms

Sometimes the same select field is used in forms for different variations of an editable object (e.g. the “completion” field of a PDF document vs a video file). If a select option for a particular variation of an editable object is not applicable or will create a confusing or negative user experience, it should be hidden from the select. If all options will create the same adverse experience, the entire select should be hidden from that form.

Hiding is better than disabling in this case because there is no condition where it would benefit the user experience to be selectable for that object.

Filters

For design guidance on using selects for filtering, see the Filters page .

Props

Name Description Type Default Required
value
Object currently selected
object true
options
Array of option objects { value, label, disabled }. Disabled key is optional
array true
label
Label
string null
disabled
Whether disabled or not
boolean false
invalid
Whether invalid or not
boolean false
invalidText
Text displayed if invalid
string null
inline
Whether or not display as inline block
boolean false
floatingLabel boolean true
placeholder string null
clearable
Whether to turn into a clearable state when an option has been selected.
boolean false
clearText string ''

Events

Name Description
blur
change
select

Slots

Name Description
display
option