Skip to content

Section Header

<tpg-section-header></tpg-section-header>

Section Headers are used to provide a description of the functionality of a group of similar components. They take the form of three variants, that are used in the following settings:

  • list-header: used in the Navigation List, where they describe the content of a Logic Group of List Items

  • menu-header: used in Menu Lists, where they describe the content of a Logic Group of Menus

  • form-header: used in Form Fields, where they describe the content of a Logic Group of Form components

Examples

Default headers

Badges and icon

All section headers can optionally contain an icon, a leading badge and/or a trailing badge, using the named slots “leading-badge” and “trailing-badge”:

Tables

Properties

Attribute Property Description Type Default Value
header-type headerType Propert to set the desired header type. 'form-header' | 'menu-header' | 'list-header' 'form-header'
type type The type of textfield to render in terms of severity-level. 'default' | 'error' | 'warning' | 'danger' 'default'
icon-template iconTemplate URI-encoded SVG template for the section header's icon. Supported constants are found in IconConstant | '' ''
label label Textual label of the header. string ''

Events

Event name Reactjs attribute Description
No events found.

Functions

Name Description Arguments
No functions found.

Slots

Name Description
leading-badge Slot reserved for the leading badge
trailing-badge Slot reserved for the trailing badge

CSS Parts

Attribute Description
No CSS parts found.

Sandbox