A lightweight visual divider for use inside forms and settings panels — bold h3 title with an optional muted description.
We'll never share these details with anyone else.
npx shadcn@latest add https://sdk-components.thesqd.com/r/section-header.jsonimport { SectionHeader } from "@/components/blocks/section-header";import { SectionHeader } from "@/components/blocks/section-header";
export function Example() {
return (
<SectionHeader
title="Personal info"
description="We'll never share these details with anyone else."
/>
);
}SectionHeader
├── size="xs | sm | md | lg | xl" (md default — text-lg/sm:text-xl; xl matches app-shell page title text-2xl/sm:text-3xl)
├── title (bold h1 — font-sans, font-bold)
├── description (optional muted-foreground paragraph below the title)
├── onBack (optional click handler — renders a circular back button to the left)
├── backLabel (aria-label for the back button, default "Go back")
└── variant="default | divider" (divider = muted grey uppercase eyebrow label — no hairline rule)We'll never share these details with anyone else.
We'll never share these details with anyone else.
Help us understand your project better by providing some basic information.
We'll never share these details with anyone else.
First name is required
Last name is required
Email is required
Phone is required
Optional — leave blank if you're an individual.
Company name is required
Website is required
We'll never share these details with anyone else.
Optional — leave blank if you're an individual.
Inter — app-shell page title.
Inter — default size.
Inter — small size.
Albra — brand display heading.
Albra — default size.
We'll never share these details with anyone else.
SectionHeader
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | — | Bold heading text rendered as an h1. |
description | string | — | Optional muted description rendered below the title. |
size | "xs" | "sm" | "md" | "lg" | "xl" | "md" | Title scale. `xs` text-sm · `sm` text-base/sm:text-lg · `md` text-lg/sm:text-xl · `lg` text-xl/sm:text-2xl · `xl` text-2xl/sm:text-3xl (app-shell page title). |
onBack | () => void | — | When provided, renders a circular ghost back button (ArrowLeft) to the left of the title and wraps everything in a flex row. |
backLabel | string | "Go back" | Accessible label for the back button. |
font | "heading" | "sans" | "heading" | Title font family. `heading` uses Albra (display face); `sans` switches to Inter. |
variant | "default" | "divider" | "default" | `default` renders the bold heading. `divider` renders a muted grey eyebrow label: small uppercase `text-muted-foreground` text — ignores `size`, `onBack`, `color`, `font`, `description`, and `inlineActions`. |
align | "left" | "center" | "left" | Horizontal alignment of the title and description. Ignored when `onBack` is set. |
className | string | — | Override or extend the wrapper classes. |