Skip to content

Tabs

Tabs root — coordinates and-tabs-list > and-tabs-trigger and and-tabs-content children via shared headless logic, injected into each child automatically. Arrow keys, Home/End, and roving tabindex are handled for you.

AccountPasswordManage your account details here.Change your password here.
<and-tabs default-value="account">
<and-tabs-list>
<and-tabs-trigger value="account">Account</and-tabs-trigger>
<and-tabs-trigger value="password">Password</and-tabs-trigger>
</and-tabs-list>
<and-tabs-content value="account"
>Manage your account details here.</and-tabs-content
>
<and-tabs-content value="password"
>Change your password here.</and-tabs-content
>
</and-tabs>
PropertyAttributeDescriptionTypeDefault
valuevalueThe currently selected tab value.string''
defaultValuedefault-valueThe initial tab value when uncontrolled.string''
orientationorientationOrientation of the tab list."horizontal" | "vertical"'horizontal'
activationModeactivation-modeHow tabs are activated: on focus or on click."automatic" | "manual"'automatic'
PropertyAttributeDescriptionTypeDefault
valuevalueThe value that identifies this tab.stringundefined
disableddisabledWhether this tab trigger is disabled.booleanfalse
PropertyAttributeDescriptionTypeDefault
valuevalueThe value that identifies which tab this content belongs to.stringundefined
EventDescriptionType
andTabChangeEmitted when the selected tab changes.CustomEvent<string>
This is a compound component — several @Component tags share the packages/web-components/src/components/and-tabs/ directory, and Stencil's docs-readme output writes all of them to the same readme.md, so only the last-processed one survives. The tables above are hand-written from the source instead; keep them in sync manually.