PageHeader

The title block at the top of a page: optional eyebrow, title, description and actions.

Status: stable. Category: Patterns.

import { PageHeader } from '@glyphui/ui'

Exports: PageHeader, pageHeaderStyles.

Notes

  • Renders the title as an h1; use one PageHeader per page.

PageHeader props

PropTypeDefaultDescription
title (required)ReactNode
actionsReactNodeButtons aligned to the end on desktop.
descriptionReactNode
eyebrowReactNode

Example: With actions

import { Button, PageHeader } from '@glyphui/ui'
import { ListFilter, Plus } from 'lucide-react'

export default function Example() {
  return (
    <PageHeader
      eyebrow="Engineering"
      title="Issues"
      description="Everything the team is working on this cycle."
      actions={
        <>
          <Button variant="outline" size="sm" leftIcon={<ListFilter />}>
            Filter
          </Button>
          <Button size="sm" leftIcon={<Plus />}>
            New issue
          </Button>
        </>
      }
    />
  )
}

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