primitive · tabs
Tabs
A progressively enhanced tab set with automatic activation, roving focus and useful in-page links as its static fallback.
Install with
npx @madojs/ui@latest add tabs.
Primitive
Tabs
Product settings
Left and Right move through this horizontal set and activate the focused tab immediately.
Account profile
Update the public name, contact address and preferred language for this account.
Notification delivery
Choose which product activity is delivered by email or shown only inside the application.
Billing details
Review the current plan, invoicing address and next renewal date.
Workspace preferences
A vertical set uses Up and Down while keeping the same native-link fallback and one active panel.
General workspace settings
Configure the workspace name, regional defaults and visibility.
Workspace members
Review membership and the application-owned roles assigned to each person.
Connected integrations
Inspect the services that can exchange data with this workspace.
Composition
- Author useful in-page links inside a labelled tabs list and matching section targets, then attach madoUiTabs().root.
Public API
-
export
madoUiTabs() - Returns the root ref for progressive tab semantics and roving focus.
-
class
mado-ui-tabs / list / tab / panels / panel - Required root, navigation and panel composition.
-
attribute
data-orientation - Optional vertical orientation; horizontal is the default.
-
attribute
aria-disabled - Keeps an unavailable tab out of activation while retaining the set.
Detected public classes
.mado-ui-tabs.mado-ui-tabs-list.mado-ui-tabs-panel.mado-ui-tabs-panels.mado-ui-tabs-tab
Detected public CSS properties
--mado-ui-color-action--mado-ui-color-border--mado-ui-color-surface--mado-ui-color-surface-soft--mado-ui-color-text--mado-ui-color-text-muted--mado-ui-focus-ring--mado-ui-radius-md--mado-ui-radius-sm--mado-ui-space-1--mado-ui-space-2--mado-ui-space-3--mado-ui-space-5--mado-ui-tabs-color--mado-ui-tabs-focus--mado-ui-tabs-gap--mado-ui-tabs-list-background--mado-ui-tabs-list-border--mado-ui-tabs-list-gap--mado-ui-tabs-list-padding--mado-ui-tabs-list-radius--mado-ui-tabs-panel-background--mado-ui-tabs-panel-border--mado-ui-tabs-panel-color--mado-ui-tabs-panel-padding--mado-ui-tabs-panel-radius--mado-ui-tabs-panel-shadow--mado-ui-tabs-panels-gap--mado-ui-tabs-tab-background--mado-ui-tabs-tab-color--mado-ui-tabs-tab-hover-background--mado-ui-tabs-tab-hover-color--mado-ui-tabs-tab-min-block-size--mado-ui-tabs-tab-padding--mado-ui-tabs-tab-radius--mado-ui-tabs-tab-selected-background--mado-ui-tabs-tab-selected-border--mado-ui-tabs-tab-selected-color--mado-ui-tabs-tab-selected-shadow
Accessibility contract
- The enhanced relationship owns tablist, tab, tabpanel, selected state and labelled panel semantics.
- Every authored link remains a useful fragment navigation fallback before enhancement.
Keyboard
- Horizontal sets use Left/Right; vertical sets use Up/Down; Home and End reach edges; activation follows focus.
Focus
- Exactly one enabled tab participates in the Tab sequence; arrow navigation uses roving focus.
Fallback
- Without enhancement, all panel sections remain available through ordinary in-page links.
Installation graph
Direct dependencies
-
Mado UI theme
theme
Resolved install order
-
Mado UI theme
theme
Copied source
The CLI resolves each registry source path into the configured project target. Links below point to the exact catalog build tag.
-
primitives/tabs/mado-ui-tabs.ts{components}/mado-ui-tabs.ts -
primitives/tabs/mado-ui-tabs.css{styles}/mado-ui-tabs.css