Tabs for Angular
Introduction
Section titled “Introduction”WAI-ARIA APG Tabs: a labelled tablist of native buttons with a roving tabindex and one tabpanel per tab, automatic or manual activation, horizontal or vertical orientation, RTL-aware arrow keys, and a scrolling tablist on overflow.
- Accessible tab panelsTabs and panels are linked for screen readers, with roving focus on the tab list.
- Automatic or manualActivate tabs as focus moves, or only when users press Enter or Space.
- Two orientationsHorizontal or vertical layouts with the matching arrow key mapping and RTL support.
- Disabled tabsDisabled tabs stay visible and are skipped by keyboard navigation.
Behavior, design tokens, and limitations are described on the Tabs page; this page covers the Angular API.
Live example
Section titled “Live example”import { Component } from '@angular/core';import { AuiTabs } from '@absoluteui/angular/tabs';
@Component({ selector: 'app-account', imports: [AuiTabs], template: `<aui-tabs label="Account" [tabs]="tabs" [value]="selected" (changed)="selected = $event.value"></aui-tabs>`,})export class AccountComponent { readonly tabs = [ { id: 'overview', label: 'Overview', content: 'Plan, usage, and contacts.' }, { id: 'billing', label: 'Billing', content: 'Invoices and payment methods.' }, ]; selected = 'overview';}Install and start
Section titled “Install and start”npm install @absoluteui/angular @absoluteui/components @absoluteui/core @absoluteui/themeSetup with provideAbsoluteUI() is covered in Getting started. Styles are included with the component.
import { AuiTabs } from '@absoluteui/angular/tabs';Defaults for every instance: provideAbsoluteUIConfig({ components: { tabs: { ... } } }) (see Configuration).
API reference
Section titled “API reference”<aui-tabs>
Section titled “<aui-tabs>”Class AuiTabs; template reference #ref="auiTabs".
Server rendering: Renders on the server; the browser re-creates it after hydration.
Inputs
Section titled “Inputs”| Input | Type | Default | Description |
|---|---|---|---|
label |
string |
Required. Accessible name of the tablist (aria-label). | |
tabs |
readonly TabItem[] |
Required. Tabs in order. Ids must be unique; they are consumer keys, not DOM ids. | |
activation |
TabsActivation |
'automatic' |
automatic selects on focus; manual needs Enter or Space. |
orientation |
TabsOrientation |
'horizontal' |
Layout and arrow keys (Left/Right or Up/Down). |
direction |
Direction |
'ltr' |
Mirrors Left/Right in rtl. An ancestor dir=rtl also mirrors. |
Two-way bindings
Section titled “Two-way bindings”| Model | Type | Change output | Description |
|---|---|---|---|
[(value)] |
string |
(valueChange) |
Selected tab id. Default: the first enabled tab. |
Outputs
Section titled “Outputs”| Output | Payload | Description |
|---|---|---|
(changed) |
TabsChangeDetail |
The user selected a different tab. Re-emits aui-change. |
Methods
Section titled “Methods”Call them through a viewChild query or a template reference.
| Method | Description |
|---|---|
panel(id: string): HTMLDivElement | null | undefined |
The tabpanel for a tab id, for consumers to fill. |
select(id: string): void |
Select programmatically (no events). |
Test harness
Section titled “Test harness”AuiTabsHarness from @absoluteui/angular/testing. <aui-tabs>.
Accessibility and performance
Section titled “Accessibility and performance”Pattern: WAI-ARIA APG Tabs pattern (automatic and manual activation), with native buttons as tabs.
The Angular component renders the framework-neutral component, so its keyboard support, roles, WCAG 2.2 criteria, budgets, and import cost apply unchanged: see Tabs: Accessibility and performance.
(c) 2026 Kasadara Technology Solutions Pvt Ltd. AbsoluteUI is free to use under the AbsoluteUI Free Use License; it is not open source.