Combobox

A combobox is a combination of a dropdown list and a text field so users can select values from a list or type them directly.


How to use a combobox

A combobox allows users to filter or search for options in a list by typing into a text field. Use a combobox when the list of options is complex enough to require searching, filtering and custom input functionality.

When using a combobox:

  • Keep the options as short as possible as long option descriptions can cause the text to get truncated
  • Use clear and concise labels that describe the purpose or function of the combobox
  • Use a popover dropdown if the user if unfamiliar with the content in the combobox or the data is complex

Don't use a combobox if the list contains only a few options.


Types of combobox

Multi select

The text input feature of the combobox allows users to enter a custom value that serves as a filter and helps them select an option from a long list in a dropdown.

Current active theme is Sainsbury's. You can see all developer documentation on our Fable Storybook site.
Supporting text
  • Start typing to search...

Multi select with button

This option allows for a icon or text button to be inserted at the end of the combobox.

Current active theme is Sainsbury's. You can see all developer documentation on our Fable Storybook site.
Supporting text
  • Start typing to search...

Multi select with selections

As the user can select multiple items from the dropdown list, the selections become represented as dismissible tags within the search field filter.

Current active theme is Sainsbury's. You can see all developer documentation on our Fable Storybook site.
Supporting text
Option 3
Option 4
  • Start typing to search...

Single select

The single select option simply allows the user to select one item only from the dropdown list.

Current active theme is Sainsbury's. You can see all developer documentation on our Fable Storybook site.
Supporting text
  • Start typing to search...

Options available

Label

The label of the combobox provides a clear and concise description of the component's purpose, making it easier for users to interact with the interface and understand it. Always display a label unless the combobox is next to another component that has a label.

Current active theme is Sainsbury's. You can see all developer documentation on our Fable Storybook site.
Supporting text
  • Start typing to search...

Supporting text

The description in the help text is flexible and encompasses a range of guidance. Sometimes this guidance is about what to input, and sometime it’s about how to input.

Current active theme is Sainsbury's. You can see all developer documentation on our Fable Storybook site.
Supporting text
  • Start typing to search...

Content guidelines

Try to limit each item in the list to one or two words.

Do
Brown bread
Don't
Multi grain brown bread

Was this page helpful?


Get in touch

Our team can answer any questions about using accordions or give you a helping hand with your next project.
Select a theme to demo: