Page Header

A Tailwind page title block with an h1, an optional description and a wrapping slot for action buttons on the right, set off by a bottom border.

src/registry/ui/page-header.tsx/r/page-header.json

Installation#

bash
npx shadcn@latest add @minidev/page-header

MiniDev UI is in the shadcn registry directory, so the short form works with no setup. Older CLI versions can use the full URL: npx shadcn@latest add https://ui.minidev.pro/r/page-header.json

Usage#

tsx
import { PageHeader } from "@/components/ui/page-header"

export function Example() {
  return (
    <PageHeader title="Users" description="Manage workspace members" actions={<Button size="sm">Invite</Button>} />
  )
}

API reference#

PageHeader props
PropTypeDefault
title*React.ReactNode-
descriptionReact.ReactNode-
actionsReact.ReactNode-
classNamestring-

* required

Examples#

All layout components

Learn more