Skip to content

Checkbox group

A form element that enables users to select multiple values from a list of options.
Expense category

Use a checkbox group to allow users to select multiple options from a small, predefined set of choices. For larger sets of options, consider using a Select component instead.

Information:
We promote usage of this component in combination with our Form control component to maintain layout consistency and ensure form accessibility. The Form control supports advanced use cases such as hint text, help popovers and error messages.

The label of a form element should be clear and concise, ideally under three words. It should describe the value of the element and not what the user needs to do in order to fill it out properly.

Information:
Never omit a label. Form labels are required for accessibility purposes. However, it may be acceptable to hide the label visually in certain cases.
Expense category

Mark the minority of form elements in a form as required or optional. This helps users scan the form and understand what is required of them. Type out the word optional or required in the label. E.g. "Per purchase limit (optional)". Don't use asterisks or other symbols.

Expense category (required)

Use hint text to give users clear guidance for data entry. Keep it brief and avoid repeating the label or other form details. If it feels redundant, try removing it. We keep help text above the input field to have the reading order match the visual order, which is needed for screen readers.

Expense category
If no category applies, choose "Other"

Use help popovers to aid first-time users or to clarify complex concepts. The help popover can contain interactive content and may be used to provide links for further information.

Expense category

Provide clear and helpful error messages that guide users toward a solution. Instead of merely stating the problem, ensure the message is specific and actionable. Avoid vague or shaming language.

Information:

Individual checkboxes should not have its own error message or style.

Expense category
Error:
Choose an expense category

Use a "skeleton" version of this component to display a loading state while data is being fetched. It provides a visual placeholder, giving users a preview of the UI structure before the actual content is loaded. This enhances the user experience by offering a more accurate representation of the final layout during data retrieval.

Disable a form element to indicate that it’s currently unavailable. This can be used to maintain layout consistency and communicate that the element may become available later. If the form element will never be available in a given context, leave it out.

Expense category

Refer to our Forms guidelines for general advice on forms structure, validation, and more.

  • Checkbox: A form element that enables users to make a binary choice (checked/unchecked).
  • Form control: Form control displays a labelled input and, optionally, associated validation text, help popover, and/or hint text.
  • Radio group: A form element that enables users to select a single value from a list of options.
  • Select: A form element that enables users to select a single or multiple values from a list of options.