Tab Panel

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

Additional demonstrations can be found in the tab group examples.
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.
import '@ods/components/web.tab-panel';

Note: You only need to import a web component once in your code, as it registers itself globally when defined, allowing you to use it anywhere within your application without needing to re-import it each time you want to use the component.

Slots

NameDescription
(default)The tab panel's content.

Properties

Please note, both DOM properties and HTML attributes are shown in the table below. Unless otherwise specified, the property and attribute names are identical.

Property/AttributeReflectsTypeDefault
name
string''
active
booleanfalse

Parts

NameDescription
baseThe component's base wrapper.

Usage

This section includes guidelines for designers and developers about the usage of this component in different contexts.

Do

  • Use Tabs to contain multiple panels of content within a single window or container
  • Use Tabs to organize similar content types related to the user needs

Dont

  • Use tabs as a primary navigation pattern - use side nav
  • Use any other components within tab groups other than tabs
  • Put related tasks on different tabs
  • Avoid nesting additional Tabs within Tab Panels

Search