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
Patterns
Page Card
The card a page's filters and table sit in.
import { PageCard } from "@/registry/vcare/ui/page-card"
export default function PageCardDemo() {
return (
<div className="w-full bg-muted/40 p-4">
<PageCard className="p-4 text-sm text-muted-foreground">Filters and the table sit in this card.</PageCard>
</div>
)
}Installation
npx shadcn@latest add @vcare/page-cardOr install directly from the URL: https://ui.vcarehms.com/r/page-card.json
- Add the registry items it uses: utils.
- Copy this file into your project and change the
@/registry/vcare/…imports to your own paths.
components/ui/page-card.tsx
import type { ReactNode } from 'react';
import { cn } from '@/registry/vcare/lib/utils';
/** The white card a page's filters and table sit in, on the grey page, as in the app. */
export function PageCard({ children, className }: { children: ReactNode; className?: string }) {
return (
<div className="flex min-h-0 flex-1 flex-col px-6 pt-4 pb-5">
<div data-tour="page-card" className={cn('flex min-h-0 flex-1 flex-col overflow-hidden rounded-3xl bg-card shadow-border', className)}>{children}</div>
</div>
);
}Usage
import { PageCard } from "@/components/ui/page-card"Exports
PageCard
Dependencies
@vcare/utils(registry)
Raw item: /r/page-card.json