Forms

Forms combine multiple components to capture and validate user input.

Explore the components that make up a form and see best practices for structure, accessibility, and usability.

Binary Button

Buttons

Checkbox

CheckButton

Text input with Heading and a chevron icon on right

Dropdown

IconButton

PinInput

Radio

RadioButton

SearchInput

Choose an option...

Select

Slider

Textarea

TextInput

Toggle

Form validation and feedback

Design principles for handling input states, errors, and success.

Always editable

Keep all input fields editable at all times.

Sample form showing editable fields

Clear labels

Use clear, sentence-case labels and messages throughout.

Sample form showing clear labels

Inline errors

Use inline error messages directly below the field they relate to.

Sample form showing inline error messages

Avoid toast

Avoid using toasts or modals for form errors or confirmations.

Sample form showing inline error message

Inline success

Display success feedback inline, close to the action (e.g. on the button). Success should feel effortless. If no redirect occurs, keep users oriented with subtle in-context confirmation.

Sample form showing success message in place of submit button