Skip to Content
glob.ui home
Components

Select

A single-choice dropdown that follows the WAI-ARIA select-only combobox pattern, with search above eight options.

Client componentUses state or handlers, so it starts with "use client".
import { Select, selectVariants } from "@glob-ui/select"

Preview

Mexico
Colombia
Argentina

Selected: none

Examples

More than eight options show a search field at the top of the list.

Apple
Banana
Blueberry
Cherry
Grape
Kiwi
Lemon
Mango
Papaya
Pear

In a form

name writes a hidden input, so a native form submits the value.

Free
Pro

Submitted plan: not submitted

API

Props are generated from the TypeScript types in the package source.

SelectProps

Prop

Type

Option

Prop

Type

Accessibility

Key or actionBehaviour
Enter, Space, ArrowDown, ArrowUpOpens the list. It opens on the selected option.
Arrow keys, Home, EndMove the active option, skipping disabled options. The list scrolls to keep it visible.
LettersTypeahead: jumps to the next option that starts with the typed letters.
Enter, SpaceSelects the active option and closes the list. Focus stays on the trigger.
EscapeCloses without changing the value.
TabSelects the active option, closes the list and moves focus on.
Search field (more than 8 options)Focus moves into the search. Arrow keys move the active option within the filtered list (aria-activedescendant). Enter selects.

ARIA. The trigger is role="combobox" with aria-haspopup="listbox" and aria-expanded. The list is role="listbox" and each option is role="option" with aria-selected and aria-disabled. Name it with aria-label or a Field. The list opens in the top layer, so cards with overflow: hidden do not clip it.

On this page