Skip to content

Tab Item

<tpg-tab-item></tpg-tab-item>

Tab Item organize and allow navigation between groups of content that are related and at the same level of hierarchy.

Each Tab Item should contain content that is distinct from other tabs in a set. A maximum of 3 Tab Items per single line is recommended; each tab shall be framed in its defined background.

Tab items should not be used alone, and should instead be used in conjuction wih the Tab Bar component.

Examples

Basic

With badge

With icons

Properties

Attribute Property Description Type Default Value
label label Text to be displayed in the tab item. string ''
value value The value of the component. string ''
leading-icon-template leadingIconTemplate Leading icon to be displayed in the tab item. IconConstant | '' ''
trailing-icon-template trailingIconTemplate Trailing icon to be displayed in the tab item. IconConstant | '' ''
selected selected Sets the item's selected state without emitting events. Used for setting initial state or for resetting a selected item by parent component. boolean false
disabled disabled If the tab item is disabled or not boolean false

Events

Event name Reactjs attribute Description
No events found.

Sandbo

Tables

Properties

Attribute Property Description Type Default Value
label label Text to be displayed in the tab item. string ''
value value The value of the component. string ''
leading-icon-template leadingIconTemplate Leading icon to be displayed in the tab item. IconConstant | '' ''
trailing-icon-template trailingIconTemplate Trailing icon to be displayed in the tab item. IconConstant | '' ''
selected selected Sets the item's selected state without emitting events. Used for setting initial state or for resetting a selected item by parent component. boolean false
disabled disabled If the tab item is disabled or not boolean false

Events

Event name Reactjs attribute Description
No events found.

Functions

Name Description Arguments
No functions found.

Slots

Name Description
badge resereved for the tpg-badge component

CSS Parts

Attribute Description
No CSS parts found.

Sandbox