Tab
<wa-tab>
Tabs are used inside tab groups to represent and activate tab panels.
Additional demonstrations can be found in the tab group examples.
Slots Jump to heading
Learn more about using slots.
Name | Description |
---|---|
(default) | The tab's label. |
Attributes & Properties Jump to heading
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 Jump to heading
Learn more about CSS custom properties.
Name | Description |
---|---|
--active-tab-color |
The color of the active tab's label.
|
CSS parts Jump to heading
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 Jump to heading
The autoloader is the recommended way to import components. If you prefer to do it manually, use one of the following code snippets.
To manually import this component from the CDN, use the following code.
import 'https://early.webawesome.com/webawesome@3.0.0-alpha.12/dist/components/tab/tab.js';