Select (design)
Select gives users the ability to select a single item from a list of options.
Usage
A select is usually used in forms. It's best utilized in a case when a user has more than four options to choose from.
- Always order the list of options in a logical order (eg. alphabetically, numerically)
- Try to select a default value
- If there's no logical default, try to use a clear placeholder text.
Behaviour
The selection menu, with a list of possible options, can be triggered by clicking into the text input field. A user can then select a single option after which the text input field updates to show the selected option.
import { Select } from '@mediahuis/chameleon-react'
Guidelines
- A select should be used in cases where there are more than 4 options
- Always try to select a default option when possible
Related components
- When a user has to make a single selection from less than 4 options, use the radio component or choice radio.