Skip to content

Segment Control Item

<tpg-segment-control-item></tpg-segment-control-item>

Segment Control Items allow the user to navigate and switch between different formats of the same group of information (e.g. a data set displayed in a list vs matrix vs graph).

Examples

Basic

Unselected

Selected

Disabled

Icons

Badge

Tables

Properties

Attribute Property Description Type Default Value
label label The label text for the segment control item. string ''
value value The identifying value of the segment control item. string ''
selected selected Indicates if the segment control item is selected. boolean false
disabled disabled Indicates if the segment control item is disabled. boolean false
trailing-icon-template trailingIconTemplate The URI-encoded svg of the trailing icon for the segment control item. IconConstant | '' ''
leading-icon-template leadingIconTemplate The URI-encoded svg of the leading icon for the segment control item. IconConstant | '' ''

Events

Event name Reactjs attribute Description
No events found.

Functions

Name Description Arguments
No functions found.

Slots

Name Description
badge slot reserved for a tpg-badge component

CSS Parts

Attribute Description
No CSS parts found.

Sandbox