Headline
A page or section title set in the Urbanist header scale.
- Status
- Ready
- Code
- In React
- Role
- Display
Usage
This demo is live, and the code below it is the same code, imports included. The component lives in src/ui of this repository and is not published to npm yet.
Transfer money
Recent recipients
Saved accounts
Pastes as editable layers. Shadows are not exported.
import { Headline } from "@/ui";
export default function HeadlineDemo() {
// On a real page, leave out "as": the levels default to h1, h2 and h3.
// Here the demo sits under the page's own headings, so it starts at h3.
return (
<>
<Headline as="h3">Transfer money</Headline>
<Headline level="h2" as="h4">Recent recipients</Headline>
<Headline level="subheader" as="h5">Saved accounts</Headline>
</>
);
}Variants and states
Every specimen is the real component from src/ui, held in one state.
Header 1: Transfer money
Header 2: Transfer money
Subheader: Transfer money
Pastes as editable layers. Shadows are not exported.
Props
- level
- "h1" | "h2" | "subheader" · default "h1"
- The Foundation style: Header 1 and Header 2 in Bold, Subheader in SemiBold. Each steps up at tablet and website widths.
- as
- "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" · default h1, h2, h3
- The HTML element, when the document outline needs a different level than the look.
- children
- ReactNode · default none
- Required. The title text.
- ...rest
- HTMLAttributes · default none
- Every other heading attribute, such as id for an in-page link.
Figma to code
Figma properties by their exact names from Naming, and the React prop that carries each one. The table covers the shared properties that bear on this component; the Figma file decides which of them its component exposes. None means there is no prop for it yet.
- 🧰 Type
- level
- Header 1, Header 2, Subheader. The text styles are Foundation Typography v1.1.
- 🖍 Label
- children
- The title text.
Accessibility
What the code in src/ui does today, and what it leaves to you.
Keyboard
- Not focusable. Screen reader users move between headings with their heading shortcut.
Screen readers
- Read as a heading at the level of its element, which is what as sets. The look does not change the level.
What you still need to do
- Use one h1 per page and do not skip levels: h1, then h2, then h3.
- Pick the element for the outline and the level for the look, not the other way round.
When to use
One Header 1 per page, then Header 2 and Subheader for the sections below it.
Do and don't
Do
- Follow the scale in order: Header 1, Header 2, Subheader.
- Keep titles short enough to fit on one line on mobile.
Don't
- Pick a heading size for looks: the level must match the document outline.
- Set whole paragraphs in a header style.
Related
4 of 16 other atoms, same role and ready ones first.
- AvatarA visual representation of a user, team, or entity.Ready
- BadgeA small label used to highlight status, category, or count.Ready
- ChipA compact label for a category, filter, or selected value.Ready
- CommentA single message in a discussion, with author, time, and text.Ready
Status reflects the component tracker snapshot of 29 October 2026.