Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Tab <wa-tab>

Names and activates a matching tab panel.

“the process of navigating a network of information resources” — Wikipedia: Web navigation. This quote supplies general domain context, not an API definition.

Category: Navigation · Availability: Core · Maturity: Stable.

Source: Web Awesome component source (MyST GitHub transformer); official component documentation.

Atomic composition

Reuse: Tab Group, Tab Panel. The full nested markup below remains independently usable.

Live preview

Static reference (works without JavaScript)

NASA astronaut portrait

The image and copyable HTML example below remain available if the interactive widget fails to initialize. The widget adds component behavior; it does not provide the only readable content.

Markdown code snippet

<wa-tab-group active="portrait">
  <wa-tab panel="portrait">Portrait</wa-tab>
  <wa-tab panel="launch">Launch</wa-tab>
  <wa-tab-panel name="portrait"><img src="./images/astronaut.png" alt="NASA portrait of Eileen Collins"></wa-tab-panel>
  <wa-tab-panel name="launch"><img src="./images/rocket.jpg" alt="Falcon 9 launch"></wa-tab-panel>
</wa-tab-group>

Usage and API notes

A tab is an atomic child of wa-tab-group. It refers to a panel using panel. This nested demo uses real image content so tab activation visibly changes the selected pane.

Media sources: Showcase media.