3.0.0-alpha.4 Alpha
Light Dark Light Dark System Search /

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

Name Description
(default) The tab's label.

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

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

CSS parts

Name Description
base The component's base wrapper.
close-button The close button, an <wa-icon-button>.
close-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.4/dist/components/tab/tab.js';
Coming soon! Coming soon!
    No results