Skip to main content
Kaleidoscope

Select

Allow one or more options to be selected from a menu of options.

Single Select

A standard Select menu. Useful for allowing selection from a list without occupying too much space.

Editable example

Best practices

  1. Use with three or more options. For fewer options, or when the options have very short labels, consider using a .
  2. For long lists, it's better to use the Combobox because it can be searched/filtered.
  3. For menus that are triggered by a button and options that perform an action, use an .

Sizes

Like with all controls, match the sizing of the Select with other controls surrounding it. Smaller sizes are used for more densely packed interfaces, while larger sizes are good for less populated forms.

Editable example

Multi select

Simply use the multiselect prop and provide an array as a value to handle multiple selection.

Editable example

Theme

Control the theme by passing the theme prop a DropdownTheme enum option.

Editable example

Errors

Use the error prop to display validation error messages.

Editable example

Accessibility

Always provide a meaningful label even when using the labelHidden prop as it will only visually hide te label but still be read by a screen reader.