Documentation menu
Getting Started
Components
Primitives
- Agent Thinking
- Alert
- Alert Dialog
- Avatar
- Badge
- Breadcrumb
- Button
- Button Group
- Calendar
- Card
- Checkbox
- Command
- Command Palette
- Context Menu
- Data Table
- Dialog
- Dropdown Menu
- Empty
- Field
- Glow Cloud
- Input
- Label
- Medication Schedule
- Period Tabs
- Popover
- Rainbow Button
- Scroll Area
- Select
- Selectable Card
- Separator
- Sheet
- Sidebar
- Skeleton
- Slider
- Sonner
- Spinner
- Switch
- Table
- Tabs
- Tag
- Textarea
- Timeline
- Tooltip
- Use Count Up
Charts and metrics
Patterns
- Confirm Button
- Date Picker
- Embedded
- Empty State
- Entity Drawer
- Error Boundary
- Field Row
- File Dropzone
- Form Dialog
- Kv
- List Editor
- List Page
- Live Time
- Mini Table
- Money
- Note Field
- Note Text
- Page Card
- Page Header
- Page Tabs
- Page Toolbar
- Person Cell
- Picture Field
- Print Card
- Range Switcher
- Row Actions
- Search Input
- Search Select
- Selected Box
- Signature Pad
- Status Badge
- Sub Nav Layout
- Suggest Input
- Tab Icons
- Table Footer
- Theme Accent Picker
- Time Picker
- View All Link
Dashboard cards
Advanced
Device frames
Website widgets
Website screens
Website panels
Website kit
Section heading
The heading every website section opens with: the blueprint frame, a large title, a lead and optional chips or buttons, rising into view line by line.
import { SectionHeading } from "@/registry/vcare/site/components/section-heading"
export default function SiteSectionHeadingDemo() {
return (
<div className="vc-site px-4">
<SectionHeading
title="Every department on one record."
lead="Front desk, doctors, lab, pharmacy and billing work on the same visit, so nothing is typed twice."
>
<a href="#" className="btn btn-primary">Book a demo</a>
</SectionHeading>
</div>
)
}Installation
npx shadcn@latest add @vcare/site-section-headingOr install directly from the URL: https://ui.vcarehms.com/r/site-section-heading.json
- Add the registry items it uses: site-kit, site-theme.
- Copy this file into your project and change the
@/registry/vcare/…imports to your own paths.
components/site/components/section-heading.tsx
import type { ReactNode } from 'react';
import { Frame } from '../ui/Frame';
import { Reveal } from '../ui/Reveal';
/**
* The heading every website section opens with: the blueprint Frame, a large title, a lead paragraph and optional extras
* underneath (chips, buttons). Each line rises into view a beat after the one before.
*/
export function SectionHeading({
title,
lead,
children,
tone = 'light',
className = '',
}: {
title: ReactNode;
lead?: ReactNode;
/** Shown under the lead, e.g. a ChipList or buttons. */
children?: ReactNode;
tone?: 'light' | 'dark';
className?: string;
}) {
return (
<Frame tone={tone} className={`mx-auto max-w-3xl text-center ${className}`}>
<Reveal as="h2" className="h-section mt-4" delay={0.05}>
{title}
</Reveal>
{lead && (
<Reveal as="p" className="lead mt-5" delay={0.1}>
{lead}
</Reveal>
)}
{children && (
<Reveal delay={0.15} className="mt-7">
{children}
</Reveal>
)}
</Frame>
);
}Usage
import { SectionHeading } from "@/components/site/components/section-heading"Exports
SectionHeading
Dependencies
@vcare/site-kit(registry)@vcare/site-theme(registry)
Raw item: /r/site-section-heading.json