Tab Panel

<wa-tab-panel> Stable Since 2.0

Tab panels hold the content shown for a single tab inside a tab group.

This component must be used as a child of <wa-tab-group>. Please see the Tab Group docs to see examples of this component in action.

Importing

Link to This Section

If you're using the autoloader or a hosted project, components load on demand — no manual import needed. To cherry-pick a component manually, use one of the following snippets.

CDN npm Self-Hosted React

Import this component directly from the CDN:

import 'https://ka-f.webawesome.com/[email protected]/components/tab-panel/tab-panel.js';

After installing Web Awesome via npm, import this component:

import '@awesome.me/webawesome/dist/components/tab-panel/tab-panel.js';

If you're self-hosting Web Awesome, import this component from your server:

import './webawesome/dist/components/tab-panel/tab-panel.js';

To import this component for React 18 or below, use the following code:

import WaTabPanel from '@awesome.me/webawesome/dist/react/tab-panel/index.js';

Slots

Link to This Section

Learn more about using slots.

Attributes & Properties

Link to This Section

Learn more about attributes and properties.

CSS custom properties

Link to This Section

Learn more about CSS custom properties.

CSS parts

Link to This Section

Learn more about CSS parts.

Need a hand? Report a bug Ask for help
    No results