LargeTitleHeader

Scrolling region whose large title collapses into a compact sticky bar as it scrolls

Category: navigation · WCAG 2.2-AA · navigation, header, title, mobile, scroll, sticky, ios

States

Props

PropTypeDefaultDescription
titlestringThe page title, rendered as the large heading and mirrored in the compact bar
childrenReact.ReactNodeContent rendered inside the component.
leadingReact.ReactNodeLeading slot of the compact bar — typically a back control
actionsReact.ReactNodeTrailing slot of the compact bar — typically icon buttons
level1 | 2 | 31Heading level for the title, mapping to h1–h3.
collapseDistancenumber48Scroll distance (px) over which the large title collapses into the bar.
classNamestringAdditional CSS class names merged onto the root element.

Design tokens

When to use

When not to use

How to build an accessible LargeTitleHeader in React →

Examples

Basic

The component owns the scroll container; give it a parent with a height.

<LargeTitleHeader title="Library">
  <List>
    <ListItem>Recently Added</ListItem>
    <ListItem>Artists</ListItem>
    <ListItem>Albums</ListItem>
  </List>
</LargeTitleHeader>

With a back control and actions

Both slots stay in the compact bar and never scroll away.

<LargeTitleHeader
  title="Downloads"
  leading={<IconButton label="Back" onClick={goBack}>←</IconButton>}
  actions={<IconButton label="Sort">⇅</IconButton>}
>
  <FileList files={files} />
</LargeTitleHeader>

Longer collapse

Stretches the reveal over more scroll distance.

<LargeTitleHeader title="Recently Played" collapseDistance={96}>
  <TrackList tracks={tracks} />
</LargeTitleHeader>

Related components

← Back to docs