SectionHeader
Eyebrow, title and description at the top of a section. Most blocks use it; use it for your own sections too.
Status: beta. Category: Blocks.
import { SectionHeader } from '@glyphui/blocks'
Exports: SectionHeader.
SectionHeader props
| Prop | Type | Default | Description |
|---|---|---|---|
title (required) | ReactNode | ||
align | "center" | "left" | left | |
animate | boolean | true | Cascade the eyebrow, title and description in. Default true. |
className | string | ||
description | ReactNode | ||
eyebrow | ReactNode | ||
headingLevel | HeadingLevel | 2 | Document outline level of the title. Default 2. |
titleId | string | Id for the title, so the section can reference it with aria-labelledby. |
Example: Left and centered
import { SectionHeader } from '@glyphui/blocks'
export default function Example() {
return (
<div className="grid w-full gap-12">
<SectionHeader
eyebrow="Integrations"
title="Works with the tools you already use"
description="Accounting, CRM and data warehouse connectors, maintained by us."
/>
<SectionHeader align="center" eyebrow="Security" title="Built for audits" headingLevel={3} />
</div>
)
}