Blocks
Section heading
The title block that opens a page section, with an eyebrow, a heading and a description.
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
| Prop | Type | Default | Description |
|---|---|---|---|
| eyebrow | ReactNode | – | A short line above the title. |
| title | ReactNode | – | The heading. Required. |
| description | ReactNode | – | A short paragraph under the heading. |
| align | "start" | "center" | "start" | Text alignment. "start" follows the reading direction. |
| headingLevel | 2 | 3 | 4 | 2 | Pick the level that keeps your page outline in order. |
| titleId | string | – | 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.