The select component provides a structured way for users to choose from a predefined list of options, streamlining decision-making in forms and interfaces. It supports various configurations, including placeholder text, grouped options, and icons, allowing for better usability and alignment with design needs. Designed for clarity and efficiency, it helps maintain a clean UI while offering an intuitive selection process.

- 1.Selection indicator (multiple): a visual marker, typically a checkmark, that shows which items have been selected in the multi-select variant of the component.
- 2.Select all item: an option that allows users to select or deselect all available choices in the multi-select variant of the component for efficiency.
- 3.List option: an individual selectable item within the dropdown list, representing a choice available to the user.
- 4.List option checkbox: a checkbox placed next to each list option in a multi-select dropdown, allowing users to select multiple items.
- 5.Icon: a small graphic or symbol that visually represents the list option, aiding quick recognition of choices.
- 6.List option label: the text displayed next to an option in the listbox, providing a clear description of the choice.
- 7.Label: a descriptive title for the select component, helping users understand its purpose and context.
- 8.Helper text: additional guidance placed below the label to clarify how the user should interact with the select component.
- 9.Select value(s): displays the currently selected options within the input area, allowing users to see their selections at a glance.
- 10.Expand/collapse icon: a visual indicator that signals whether the dropdown list can be expanded or collapsed.
- 11.Select container: the outer structure enclosing the select component, ensuring proper spacing and alignment within the UI.
- 12.Select listbox: the dropdown box that appears when the select is expanded, containing all available options.
- 13.List item selected indicator (single): a checkmark or highlight used to indicate which option is currently selected in a single-selection dropdown.
- 14.List item (single): an individual selectable option in a single-selection dropdown, allowing users to pick only one choice at a time.
The select component allows users to choose from a predefined list of options, making it a valuable input method for collecting user-provided information. It is particularly useful in forms where users need to submit structured data efficiently. Designed to handle more than four options, the select component improves usability by reducing clutter and keeping the interface clean compared to radio buttons or other selection methods. Depending on the use case, it can support both single and multiple selections, enabling flexibility in data input.
Filtering features are present in all variants of the select component, and it's a very useful attribute of the component when dealing with long lists of options.
As the user types, the list dynamically narrows down to display only the matching results, improving efficiency and ease of selection. The value updates when the user either types a string that matches an existing option or manually selects one from the list. If no matches are found, a "No matches found" message is displayed, providing clear feedback.
The select component can be either optional or required, depending on the context. When marked as optional, it includes a placeholder-like option that allows users to leave the field empty if no selection is needed. On the other hand, if no optional label is present, the field is considered required, meaning users must choose an option before proceeding. If a required select is left empty, an error message stating "This field cannot be empty" should appear when the component loses focus, ensuring users provide the necessary input before submitting a form.
While both the select and dropdown components present a list of options, they serve distinct purposes within an interface. The select component is primarily used in forms to collect user input, allowing either single or multiple selections from a predefined set of options. It is designed to replace traditional radio buttons or checkboxes when space efficiency is needed, especially when dealing with long lists. Additionally, the select component can include a filtering mechanism to help users find their desired option more easily.
On the other hand, the dropdown component is not meant for form inputs but rather for displaying contextual actions or navigation links. It typically triggers a menu that offers options such as commands, shortcuts, or external links, often enhancing interaction within a UI. Unlike the select, dropdowns do not retain selected values within the component itself but instead execute an action upon selection.
When deciding between the two, consider whether the component needs to collect and retain user input (select) or provide quick access to actions and links (dropdown).
Depending on the number of items the user is able to select, our component can allow multiple or single selection.
Ideal for scenarios where a single, definitive choice is required, the single-selection allows users tochoose only one option from a predefined list. This variant is commonly used in forms where users need to specify categories, pick a location, select a status, or choose from mutually exclusive options like gender, payment methods, or subscription plans. It simplifies decision-making by preventing multiple selections, ensuring clarity and accuracy in user inputs.
The multiple-selection allows users to choose more than one option from a list, making it perfect for scenarios where multiple selections are necessary. This variant is commonly used in filters, permission settings, tag selection, and cases where users need to customize their choices, such as selecting multiple product categories, preferred communication channels, or applicable document types.
To enhance usability, this variant includes a "Select all" feature within the listbox, allowing users to quickly select all options at once. This functionality is especially useful in forms with long lists, where multiple selections are likely to be valid, reducing the time and effort needed to choose items individually.
- Use select for more than four options: if the number of choices is fewer, consider using radio buttons (for single selection) or checkboxes (for multiple selection) to reduce user interaction effort.
- Enable filtering for long lists: if the option list is extensive (around 15 or more items), use the filterable variant to help users quickly find relevant choices.
- Label optional fields clearly: when the select field is optional, ensure a placeholder option is available to indicate that the field can be left empty. If it’s required, provide an error message when left unselected.
- Choose the right selection mode: use the single-selection variant when users need to pick only one option. If multiple selections are needed, enable the multi-selection variant and consider including the "select all" feature for better usability.
- Keep option labels clear and concise: avoid overly long or ambiguous option labels. Each choice should be easily scannable and self-explanatory.
- Use placeholders wisely: a placeholder should provide guidance but not be mistaken for a default selection. Be clear and concise when deciding which placeholder to set into the select.
- Prevent excessive nesting: when grouping options into categories, keep the hierarchy simple and easy to navigate to avoid overwhelming the user.