Skip to main content
  1. Docs
  2. Components
  3. Type

Heading

A section heading: the level sets the element, the size sets the look. The level is required, so the outline is always meant.

Import
@qeetrix/react
Status
StableSince 0.0.2
Renders
<h1>–<h6>Server-rendered
Tested
WCAG 2.2 AAaxe on every pull request

01

When to use

Use it for
  • The title of a section, a card or a panel.
  • A welcoming page's display line.
Not for

02

Anatomy

  1. 1heading<h2>h1 to h6 from level; data-size for the look.

03

Do and don't

Levels in order
Doh2, then h3 under it: the outline reads as the page does.
Don'tA level picked for its look: h4 straight under h2.
A heading, not bold text
DoHeading: in the outline, found by screen readers' heading keys.
Don'tBold Text where a heading goes: the section has no name.

04

Content

  • Sentence case: Recent sign-ins.
  • No full stop.
  • A few words: the section's subject.
Next — HeadingAPI