Forms
What takes a user's input, and the labels and fields around it. Mocha has 9.
- CheckboxA checkbox with its check mark built in.
- FieldWires a label, a description and validation errors to a form control.
- InputA single-line text field, with an optional clear button.
- LabelNames any control, and moves focus into it when pressed.
- Segmented ControlPicks one of a few options from a row of buttons, with an indicator that slides to the choice.
- SelectPicks one value from a list.
- SliderPicks a number, or a range, by dragging a thumb along a scale.
- SwitchAn on/off switch for settings that apply right away.
- TextareaA multi-line text field that grows to fit its content.