Module Tabgroup#

An accessible tab group with full keyboard navigation. It demonstrates managing selection state internally while keeping it read-only for outside consumers.

Preview#

Tab 1 content

Profile Panel

Manage your user profile information.


Welcome to our homepage

First panel content

Only panel content

Valid panel content
Source code

Loading...

Tag Name#

module-tabgroup

Reactive Properties#

NameTypeDefaultDescription
selectedstring (readonly)''Id of the selected tab panel (aria-controls of active tab)

Descendant Elements#

SelectorTypeRequiredDescription
all('button[role="tab"]')Memo<HTMLButtonElement[]>requiredTab buttons with unique aria-controls references
all('[role="tabpanel"]')Memo<HTMLElement[]>requiredTab panels with unique ids controlled by selected tab