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

Tab Panel

<wa-tab-panel> Since 2.0 stable

Tab panels are used inside tab groups to display tabbed content.

General Custom Advanced Disabled This is the general tab panel. This is the custom tab panel. This is the advanced tab panel. This is a disabled tab panel.
<wa-tab-group>
  <wa-tab slot="nav" panel="general">General</wa-tab>
  <wa-tab slot="nav" panel="custom">Custom</wa-tab>
  <wa-tab slot="nav" panel="advanced">Advanced</wa-tab>
  <wa-tab slot="nav" panel="disabled" disabled>Disabled</wa-tab>

  <wa-tab-panel name="general">This is the general tab panel.</wa-tab-panel>
  <wa-tab-panel name="custom">This is the custom tab panel.</wa-tab-panel>
  <wa-tab-panel name="advanced">This is the advanced tab panel.</wa-tab-panel>
  <wa-tab-panel name="disabled">This is a disabled tab panel.</wa-tab-panel>
</wa-tab-group>

Additional demonstrations can be found in the tab group examples.

Slots

Name Description
(default) The tab panel's content.

Properties

Name Description Reflects
name
name
The tab panel's name.
Type string
Default ''
active
active
When true, the tab panel will be shown.
Type boolean
Default false

CSS custom properties

Name Description
--padding
The tab panel's padding.

CSS parts

Name Description
base The component's base wrapper.

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-panel/tab-panel.js';
Coming soon! Coming soon!
    No results