Skip to content

PageHeader

A responsive page-level header that displays a title, subtitle, and optional action slot. Adapts from stacked (mobile) to side-by-side (desktop) layout automatically.

Basic Usage

Demo

Users

Manage your team members and their access levels.

With Actions

With Actions

Patients

237 active patients

Props

Props
PropTypeDefaultDescription
titlestringundefinedMain heading text. Also overridable via the title slot.
subtitlestringundefinedSubheading text displayed below the title. Also overridable via the subtitle slot.
containerClassstring'bg-primary border-border-light shadow-xs text-slate-900 dark:text-white'CSS classes applied to the outer container div for custom styling.

Slots

Slots
SlotDescription
titleOverride the title rendering. Replaces the title prop text.
subtitleOverride the subtitle rendering. Replaces the subtitle prop text.
actionsRight-side content. Use for buttons, filters, or search inputs. Only rendered if this slot has content.

Built with VitePress