Component docs
Loading
Every control needs visible text or an explicit accessible name.
Composite controls preserve focus order and predictable arrow keys.
Async status is announced only when it changes user intent.
| Area | Rule |
|---|---|
| Focus | Use FocusScope, RovingFocusGroup, and native focusable controls. |
| Dismiss | Use open/defaultOpen/onOpenChange plus onClose/closeLabel. |
| Status | Use LiveRegion or Announcer for meaningful async updates only. |
| Labels | Use label, aria-label, title, description, and AccessibleIcon. |
| Portals | Library renders inline. Apps own portal placement. |
Use shared behavior primitives before adding app-specific logic.
<AccessibleIcon label="Search"><SearchIcon /></AccessibleIcon>
<DismissableLayer onClose={close}><Surface padding="md" /></DismissableLayer>