Skip to content

Modal Header

<tpg-modal-header></tpg-modal-header>

The Modal Header is a title bar always located at the top of every modal of the Design System.

Its function is to provide:

  • a description of the content of the modal
  • navigation outside the modal
  • options related to the layout of the modal
  • manual scrolling of the modal

Examples

Basic

With Menu

Centered header with back button

Centered with manual scroll

Tables

Properties

Attribute Property Description Type Default Value
heading-placement headingPlacement Placement for the heading badge. HeadingPlacement 'left'
manual-scroll manualScroll Whether to enable manual scrolling buttons. boolean false
sticky-header-divider stickyHeaderDivider Wheter the divider should display sticky variant boolean true

Events

Event name Reactjs attribute Description

Functions

Name Description Arguments
No functions found.

Slots

Name Description
leading-btn Slot reserved for leading tpg-quaternary-button
trailing-btn Slot reserved for trailing tpg-quaternary-button
heading-badge Slot reserved for tpg-badge to be used as a header
menu-item Slot reserved for menu-item

CSS Parts

Attribute Description
No CSS parts found.

Sandbox