3.0.0-alpha.9 Alpha
Components Tab Group

Tab

<wa-tab> Since 2.0 Stable

Tabs are used inside tab groups to represent and activate tab panels.

Additional demonstrations can be found in the tab group examples.

Slots

Learn more about using slots.

Name Description
(default) The tab's label.

Attributes & Properties

Learn more about attributes and properties.

Name Description Reflects
panel
panel
The name of the tab panel this tab is associated with. The panel must be located in the same tab group.
Type string
Default ''
disabled
disabled
Disables the tab and prevents selection.
Type boolean
Default false

CSS custom properties

Learn more about CSS custom properties.

Name Description
--active-tab-color
The color of the active tab's label.

CSS parts

Learn more about CSS parts.

Name Description
base The component's base wrapper.
close-button The close button, an <wa-icon-button>.
base The close button's exported base part.

Importing

The autoloader is the recommended way to import components. If you prefer to do it manually, use one of the following code snippets.

CDN npm React

To manually import this component from the CDN, use the following code.

import 'https://early.webawesome.com/webawesome@3.0.0-alpha.9/dist/components/tab/tab.js';
Coming soon! Coming soon!
    No results