Components

Select

The UI-select component enables single or multiple selections from a collection of items. It can be configured in single mode (no checkboxes) or multiple mode (checkboxes displayed).

Included in free version

Flexible Selection Options

The UI-select component offers flexible selection options by enabling both single and multiple selections from a collection of items. This versatility makes it suitable for various use cases, from choosing a single option in a form to selecting multiple items from a list.

Component Overview

The Select component in Emvi UI provides a consistent way for users to choose one option from a predefined list. Designed with clarity, accessibility, and scalability in mind, Select is essential for forms, configuration screens, and settings panels where predefined values must be selected. Emvi UI supports free and premium variants for both Figma and Tailwind workflows, ensuring seamless design-to-code implementation.

Types and Variants

Emvi UI includes multiple select styles to adapt across use cases:
- Standard Select: basic dropdown with label and list of options.
- Select with Placeholder: prompts users before a choice is made.
- Select with Icons: adds visual indicators alongside text labels.
- Grouped Select: organizes options into logical categories.
- Disabled Select: non-editable, visually muted for unavailable states. Variants support light/dark modes and leverage tokens like select.bg, select.border, and select.option.active.

Sizes, Spacing, and Scale

Select components are available in SM, MD, and LG sizes:
- SM: compact forms and dense UIs.
- MD: default, balancing legibility and density.
- LG: touch-first, onboarding flows, or critical selection tasks. Spacing between trigger, text, and icons is handled via Figma Auto Layout and Tailwind utilities (px-3, gap-2, h-10), with touch targets ≥44×44px for accessibility.

States and Behavior

Select UI supports all essential states:
- Default: neutral border and background.
- Hover: subtle highlight for interactivity.
- Focus-visible: clear outline ring for accessibility.
- Selected: option highlighted with active color.
- Disabled: non-interactive, muted contrast.
- Error: validation feedback through border and helper text. The dropdown closes automatically when an option is chosen, ensuring clarity and minimal friction in user flows.

Integration & Usage

Use semantic HTML with <select> and <option> or custom div-based implementations styled with Tailwind. Example:

Accessibility

For accessible selects:
- Always provide a visible label linked to the field.
- Use ARIA attributes for custom components (role="listbox", aria-selected, aria-disabled).
- Ensure keyboard navigation: Tab to focus, Arrow keys to navigate, Enter/Space to select.
- Maintain high contrast and a visible focus ring.

Figma & Tailwind Integration

In Figma, Select ships with variants for default, hover, focus, disabled, and error states. Auto Layout manages spacing between label, trigger, and dropdown items. In Tailwind, Select is built using utilities like rounded-md, focus-visible:ring, and peer-checked for active states. Tokens ensure consistency across light/dark themes.

Best Implementation Practices

- Use Select for mutually exclusive options with clear predefined choices.
- Prefer grouped selects for large option sets.
- Don’t overload users with too many visible options; consider searchable selects.
- Always use labels—placeholders alone are not enough.
- Match input heights with other form fields for consistency.
- Use error states for validation and helper text for clarity.

Configurable Modes

The UI-select component can be configured in two distinct modes to cater to different needs. In Single mode, users can select one item without checkboxes, providing a clean and straightforward interface for single selections. In Multiple mode, checkboxes are displayed next to each item, allowing users to select multiple items at once. This dual functionality ensures that the UI-select component can adapt to various application requirements.

Extending Abstract Configuration

The UI-select component extends all abstract configuration, making it highly customizable and adaptable to specific design needs. Developers can configure the component to match the look and feel of their application, ensuring a seamless integration. Our UI kit includes customizable UI-select components that can be easily tailored for single or multiple selection scenarios, providing a user-friendly way to handle item selection.

Frequently Asked Questions

Subscribe

Get all the news from EmviUI.

Update cookies preferences