Skip to content
Eskais UI

Blocks

Section Heading

The heading of a page section: eyebrow, a large title, a description and actions, start-aligned or centered, with the heading level and id the enclosing section names itself by.

Example

Features

Everything is a block.

An eyebrow, a title, a description and actions that move below the title on narrow containers.

Centered, one level down.

Installation

npx shadcn@latest add @eskais/section-heading

Usage

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

Head each page section with it, and give the section aria-labelledby the headingId so it becomes a named region.

API reference

SectionHeading

PropTypeDefault
eyebrowReactNode–
titlerequiredReactNode–
descriptionReactNode–
actionsLinks or buttons beside the heading on wide containers, below it on narrow ones.ReactNode–
align"start" | "center""start"
headingLevel2 | 3 | 42
headingIdThe heading's id, so the enclosing `<section aria-labelledby>` can name itself after it.string–

Also takes <header> attributes except title.

Other exports

type SectionHeadingProps

Accessibility

  • The heading level is yours to set, so the outline stays in order.

Agent actions

Runs agent.snapshot() from @ui-sdk/react/agent on the live preview above.