aria-controls
An ARIA property on a trigger pointing, by id, to the element it shows, hides or changes.
In more detail
Tabs point at their panel and disclosure buttons at their content region. Compound components generate matching ids with useId so these links stay correct when several instances exist.
Related terms
- aria-expanded — An ARIA state on a button or trigger saying whether the content it controls is currently shown.
- useId — The React hook that generates a unique ID string that is stable across renders and matches between server and browser.
- identifier — A name or number that picks out exactly one thing, such as one container, one image or one database row.
Taught in
- Headless Architecture: State vs Presentation Separation — Design Systems & Component Engineering
- Compound Component Patterns: Context Sharing & Internal State — Design Systems & Component Engineering
- Navigation & Disclosure: Dropdown Menus, Tabs & Accordions — Design Systems & Component Engineering