--- url: /reference/items/Tabs/js-api.md --- # JS API `Tabs` implements the [WAI-ARIA Tabs pattern](https://www.w3.org/WAI/ARIA/apg/patterns/tabs/). It pairs each `btn` ref with the `content` ref at the same position, writes the `tablist` / `tab` / `tabpanel` roles and their relationships, keeps exactly one tab in the page's tab sequence, and moves the focus with the arrow keys. ## Refs ### `list` The element wrapping the tab buttons. It receives `role="tablist"`. Required by the pattern. Give it an `aria-label` or an `aria-labelledby`: without one the component reports `tabs.unnamed-tablist` on the diagnostic channel. Set `aria-orientation="vertical"` on it to move the keyboard navigation onto the up and down arrows. ### `btn[]` The tab buttons. Each one receives `role="tab"`, an `aria-controls` pointing at its panel, an `aria-selected` and a roving `tabindex`. Use native `