Skip to content

components/bits/SectionHeader#

SectionHeader()#

function SectionHeader(props): Element;

The app's one section-title surface: optional icon, a title, an optional subtitle, right-aligned actions and an optional rule beneath.

Sizes come from the theme's typography scale.

Parameters#

Parameter Type
props SectionHeaderProps

Returns#

Element


SectionHeaderProps#

Properties#

action?#

optional action?: ReactNode;

Trailing controls — buttons, toggles, a count chip. Right-aligned.

dense?#

optional dense?: boolean;

Removes the vertical padding, for headers inside an already-padded row.

divider?#

optional divider?: boolean;

Render a <Divider> beneath the header.

icon?#

optional icon?: ReactNode;

Leading glyph. Sized by the header so every section lines up.

subtitle?#

optional subtitle?: ReactNode;

Secondary line under the title (counts, hints, the "why" of the section).

sx?#

optional sx?: any;

title#

title: ReactNode;

The section label. Kept as a string so the header can style it itself.

variant?#

optional variant?: "section" | "page" | "overline";

Visual weight.

section (default) is the standard section title. page is the one-per-surface page title. overline is the small uppercase label used to divide a form or a settings pane into bands.