Section Header

Tailwind section header with a title, optional muted description and a right-aligned actions slot that wraps on narrow screens. Use it above cards and tables.

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

Installation#

bash
npx shadcn@latest add @minidev/section-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/section-header.json

Usage#

tsx
import { SectionHeader } from "@/components/ui/section-header"

export function Example() {
  return <SectionHeader />
}

API reference#

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

* required

All layout components

Learn more