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 Panel <wa-tab-panel>

Contains content selected by a matching tab.

“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. 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 panel is an atomic child of wa-tab-group and requires a unique name matching its tab’s panel attribute. The photographs demonstrate which panel becomes visible.

Media sources: Showcase media.