Skip to Content
Zuri
Blocks

Section heading

The title block that opens a page section, with an eyebrow, a heading and a description.

Live preview
Theme
Preview width

Courses

Pick a path and start this week

Every course ends with a project you can show an employer.

Mentors

Learn from people in the field

Working professionals, matched to your goals.

Use SectionHeading to start each section of a landing page, so headings look the same all the way down.

Installation

pnpm dlx shadcn@latest add https://components.abdulqadirmsingi.com/r/section-heading.json

Usage

import { SectionHeading } from "@/components/ui/section-heading";

<SectionHeading eyebrow="Courses" title="Pick a path" description="Every course ends with a project." />

Props

Props
PropTypeDefaultDescription
eyebrowReactNode–A short line above the title.
titleReactNode–The heading. Required.
descriptionReactNode–A short paragraph under the heading.
align"start" | "center""start"Text alignment. "start" follows the reading direction.
headingLevel2 | 3 | 42Pick the level that keeps your page outline in order.
titleIdstring–An id for the heading, so a `<section>` can be named by it with `aria-labelledby`.

Accessibility

  • Renders a real heading. Don't skip levels: use 2 for page sections and 3 for subsections.
  • The eyebrow uses the accent ink colour, which meets AA contrast on white. (Plain saffron does not.)

Tokens used

--accent-ink, --muted-foreground.

Known limitations

  • It is only the title block, not the section wrapper. You add the spacing and the section element.

On this page