SectionHeader
section-headerThe heading group at the start of a section: eyebrow, large title, accented half, and lead text.
Usage
Basic usage
An eyebrow, a title, an accented second half, and a lead paragraph: the group that opens each section on a marketing page or docs home.
Products
From one button,
to a whole back office
Four layers, one design language. Copy what you need.
<SectionHeader
eyebrow="Products"
title="From one button,"
accent="to a whole back office"
accentBreak="mobile"
description="Four layers, one design language. Copy what you need."
/>Centered
align="center" centers the title and lead text together, for a closing CTA or a centered intro.
Design
Carefully designed defaults,free to change
Every component ships with defaults ready for production.
<SectionHeader
align="center"
eyebrow="Design"
title="Carefully designed defaults,"
accent="free to change"
accentBreak="none"
description="Every component ships with defaults ready for production."
/>Breaking before the accent
accentBreak decides how the title joins the accented half: always breaks the line, mobile breaks only on narrow screens, space adds a space (English), and none joins directly.
AI native
Your AI assistant,
fluent in your UI kit
In production
Built natively on Hulian UI
<SectionHeader eyebrow="AI native" title="Your AI assistant," accent="fluent in your UI kit" />
<SectionHeader eyebrow="In production" title="Built natively" accent="on Hulian UI" accentBreak="space" />When to use
The group that opens each section on a marketing page or docs home: a small eyebrow (section name), a large section title whose second half is accented, and a lead paragraph. For the title bar at the top of an admin page (back button, breadcrumbs, actions), use PageHeader; for just a heading, use Heading.
Import
import { SectionHeader } from "@hulianui/ui"Props
| Name | Type | Default | Description |
|---|---|---|---|
| title* | ReactNode | - | The title |
| eyebrow | ReactNode | - | A short line above the title (section name), in the accent color |
| accent | ReactNode | - | The second half of the title, accented |
| accentBreak | "always" | "mobile" | "space" | "none" | "always" | How the title joins accent: always breaks the line; mobile breaks only on narrow screens; space stays on one line with a space (English); none joins directly (Chinese) |
| description | ReactNode | - | Lead text under the title, in secondary gray, up to about 42rem wide |
| align | "start" | "center" | "start" | Alignment; with center the lead text is centered too |
| level | 2 | 3 | 4 | 2 | Semantic heading level; the visual size stays at the section-title step (30px on narrow screens, 36px from sm up) |
Extends native<div>attributes (classNamelands on the outer container, for width and margins).
Pitfalls
- Use
accentBreak="none"when a Chinese title should read as one run and"space"for English; the default"always"breaks the line between the halves. - Keep punctuation with the first half (
title="From one button,"): themobilebreak happens beforeaccent, so punctuation insideaccentwould start the line on narrow screens.
Related
Heading · PageHeader · Text
Playground
Products
From one button,
to a whole back office
Four layers, one design language. Copy what you need.
<SectionHeader
eyebrow="Products"
title="From one button,"
accent="to a whole back office"
accentBreak="always"
align="start"
description="Four layers, one design language. Copy what you need."
/>