DsPageHeading component displays a page title with optional subtitle content and action buttons. It features a full-width bottom border that spans the entire viewport.
Component Location
Props
| Prop | Type | Required | Description |
|---|---|---|---|
title | string | Yes | Main page title |
description | string | No | Short description below title |
Slots
| Slot | Description |
|---|---|
default | Optional subtitle content below title (text-sm, normal text color, gap-4 from title) |
actions | Action buttons displayed on the right side |
Basic Usage
With Description
With Action Buttons
Use the#actions slot to add buttons on the right side:
With Custom Content (Default Slot)
Use the default slot to add flexible content below the title. This can include text, Vue components, or any custom markup:With Dynamic Content
With Vue Components
With Breadcrumb Navigation
When adding breadcrumb navigation to a page heading, you MUST useRouterLink with the as-child pattern. Never use the href attribute directly on BreadcrumbLink as it creates a regular <a> element that causes full page reloads.
Breadcrumb Rules
| Do | Don’t |
|---|---|
<BreadcrumbLink as-child><RouterLink to="/path"> | <BreadcrumbLink href="/path"> |
Use RouterLink for client-side navigation | Use href which causes full page reload |
Use to prop on RouterLink | Use href prop on BreadcrumbLink |
With Breadcrumb and Actions
Full Example
Combining all features:Styling
The component uses these key styles:- Title: 32px font size, medium weight, tight letter-spacing (
text-[32px] tracking-[-0.79px] font-medium) - Description prop: Muted color (
text-muted-foreground), tight gap from title (gap-1) - Default slot: Smaller text (
text-sm), normal text color, spaced from title (gap-4) - Full-width border: Uses CSS pseudo-element (
after:w-screen) to extend beyond container - Responsive layout: Stacks vertically on mobile, horizontal on
lgbreakpoint
Visual Hierarchy
Related Documentation
- Navbar Component - Top navigation bar
- UI Design System - Overall design patterns

