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

PropTypeDefaultDescription
title (required)ReactNode
align"center" | "left"left
animatebooleantrueCascade the eyebrow, title and description in. Default true.
classNamestring
descriptionReactNode
eyebrowReactNode
headingLevelHeadingLevel2Document outline level of the title. Default 2.
titleIdstringId 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>
  )
}

Live page: https://glyphui.xyz/components/section-header