Page header
Page header
Component demo
Interactive example
Latte recipe
<ic-page-headerheading="Latte recipe"subheading="A Latte is a popular Italian coffee, made with espresso, steamed milk and a thin layer of foam."reverse-order="true"><ic-chipslot="heading-adornment"label="BETA"size="large"></ic-chip><ic-buttonslot="actions"variant="primary"> Create coffee</ic-button><ic-buttonslot="actions"variant="tertiary"> Filter coffee</ic-button><ic-stepperslot="stepper"><ic-stepheading="Warm kettle"type="completed"></ic-step><ic-stepheading="Warm milk"subheading="Optional"type="completed"></ic-step><ic-stepheading="Pour milk"type="current"></ic-step></ic-stepper><ic-text-fieldslot="input"placeholder="Search for ingredients…"label="Input"hide-label="true"></ic-text-field></ic-page-header>
Page header details
Props
All components also accept native properties supported by the DOM, such asclassName
and
style
.
|
|
|
|
|---|---|---|
|
|
The alignment of the page header. |
|
|
|
If |
|
|
|
The title to render on the page header. |
|
|
|
If |
|
|
|
The size of the page header component. |
|
|
|
If |
|
|
|
If |
|
|
|
The subtitle to render on the page header. |
|
|
|
Sets the theme color to the dark or light theme color. "inherit" will set the color based on the system settings or ic-theme component. |
|
|
The alignment of the page header. |
|
If |
|
The title to render on the page header. |
|
If |
|
The size of the page header component. |
|
If |
|
If |
|
The subtitle to render on the page header. |
|
Sets the theme color to the dark or light theme color. "inherit" will set the color based on the system settings or ic-theme component. |
Slots
A slot allows for any type of element or markup to be passed into and rendered within a web component. This creates more flexibility than using a prop which must take a specific type of data.
Content can be slotted into a component by adding it as a top-level child of the component.
Slots can have a name to identify them. These specify which slot the content will be inserted into, and therefore where it will be rendered and how it will be used within the component. The name of the slot to be used can be specified by passing it via a
slot
attribute on the slotted content.
|
|
|
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CSS Custom Properties
|
|
|
|---|---|
|
|
|
|
|
Variants
Size small
Interactive example
Latte recipe
<ic-page-headersize="small"heading="Latte recipe"subheading="A Latte is a popular Italian coffee, made with espresso, steamed milk and a thin layer of foam."></ic-page-header>
With breadcrumb navigation
Interactive example
Latte recipe
<ic-page-headerheading="Latte recipe"subheading="A Latte is a popular Italian coffee, made with espresso, steamed milk and a thin layer of foam."><ic-chipslot="heading-adornment"label="BETA"size="large"></ic-chip><ic-breadcrumb-groupslot="breadcrumbs"><ic-breadcrumbcurrent="true"page-title="Drinks"href="#"></ic-breadcrumb><ic-breadcrumbpage-title="Coffees"href="#"></ic-breadcrumb><ic-breadcrumbpage-title="Latte"href="#"></ic-breadcrumb></ic-breadcrumb-group></ic-page-header>
With actions, input and stepper
Interactive example
Latte recipe
<ic-page-headerheading="Latte recipe"subheading="A Latte is a popular Italian coffee, made with espresso, steamed milk and a thin layer of foam."reverse-order="true"><ic-chipslot="heading-adornment"label="BETA"size="large"></ic-chip><ic-buttonslot="actions"variant="primary">Create coffee</ic-button><ic-buttonslot="actions"variant="tertiary">Filter coffee</ic-button><ic-stepperslot="stepper"><ic-stepheading="Warm kettle"type="completed"></ic-step><ic-stepheading="Warm milk"subheading="Optional"type="completed"></ic-step><ic-stepheading="Pour milk"type="current"></ic-step></ic-stepper><ic-text-fieldslot="input"placeholder="Search for ingredients…"label="Input"hide-label="true"/></ic-page-header>