Select, Autocomplete, SegmentedControl or RadioGroup
Ways to pick from options. They differ in how many options there are, whether all of them should be seen at once, and when the choice takes effect.
The rule
On or off? Switch if it applies at once, Checkbox if saved with a form. Two to four that switch a view? SegmentedControl. Two to five in a form? RadioGroup. Five or more? Select. Too many to scroll, or from the server? Autocomplete.
Side by side
| Component | Options | All in view | Takes effect | Where |
|---|---|---|---|---|
| Segmented control | Two to four, short | Yes | At once | Toolbars, card headers |
| Toggle group | Tools, one or several | Yes | At once | Toolbars |
| Radio group | Two to five, worth reading | Yes | On submit | Forms |
| Select | Five or more, or long names | No | On submit, or at once in a toolbar | Forms, table rows, toolbars |
| Autocomplete | Too many to scroll, or loaded by search | No | When an option is picked | Forms |
| Switch | On or off | Yes | At once | Settings |
| Checkbox | On or off, or several of a list | Yes | On submit | Forms |
In one line each
- Segmented control: Views of the same data, a sort order, a time window.
- Toggle group: Formatting and tool modes; for views of data use SegmentedControl.
- Radio group: Exactly one of a few options whose words need to be read side by side.
- Select: One of a known list too long to lay out.
- Autocomplete: Searching a long or server list; typing alone never sets a value.
- Switch: A setting that applies now, with no Save button.
- Checkbox: Agreeing, or ticking several; Select all with the partly-checked state.