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 widgets
Profile Card
A patient's profile card: avatar, name, department and MRN, age, blood group and doctor.
import { ProfileCard } from "@/registry/vcare/site/widgets/profile-card"
export default function SiteProfileCardDemo() {
// Sized as on the website: the widget fills the box it is given.
return (
<div className="vc-site grid place-items-center overflow-x-auto rounded-2xl bg-[#f5f6f8] p-6">
<div className="h-[300px] w-[250px]">
<ProfileCard />
</div>
</div>
)
}Installation
npx shadcn@latest add @vcare/site-profile-cardOr install directly from the URL: https://ui.vcarehms.com/r/site-profile-card.json
- Install the dependencies:
npm i react-icons - 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/widgets/profile-card.tsx
import { LuCreditCard, LuDroplets, LuStethoscope, LuUserRound } from 'react-icons/lu';
import type { IconType } from 'react-icons';
import { Avatar, type TagTone } from '../ui/kit';
const card = 'rounded-2xl bg-white p-4 text-left shadow-[0_1px_2px_rgb(15_27_45/0.04),0_10px_28px_-10px_rgb(15_27_45/0.14)] ring-1 ring-black/[0.06]';
const rows: [string, string, string, TagTone, string, string][] = [
['Anna Meyer', 'Cardiology', 'Checked in', 'blue', 'Nov 17, 2026', '$0'],
['Daniel Reed', 'General', 'Insurance pending', 'amber', 'Nov 17, 2026', '$420'],
['Maria Lopez', 'Cardiology', 'Billed', 'green', 'Nov 16, 2026', '$0'],
['James Carter', 'Orthopaedics', 'In consultation', 'violet', 'Nov 16, 2026', '$180'],
['Sofia Novak', 'Physiotherapy', 'Payment due', 'red', 'Nov 15, 2026', '$650'],
];
/** A patient's profile card: avatar, name, department and MRN, age, blood group and doctor. */
export function ProfileCard() {
const rows: [IconType, string, string][] = [[LuCreditCard, 'MRN', 'NV000002'], [LuUserRound, 'Age', '71 years'], [LuDroplets, 'Blood group', 'B positive'], [LuStethoscope, 'Doctor', 'Dr. Rivera']];
return (
<div className={`${card} flex h-full flex-col items-center`}>
<Avatar name="Anna Meyer" size={64} />
<p className="mt-3 text-[15px] font-semibold text-ink">Anna Meyer</p>
<p className="text-[12px] text-[#6b7280]">Cardiology · Follow up</p>
<div className="mt-4 w-full space-y-2.5">
{rows.map(([I, k, v]) => <div key={k} className="flex items-center justify-between text-[12px]"><span className="flex items-center gap-2 text-[#6b7280]"><I size={13} />{k}</span><span className="font-semibold text-ink">{v}</span></div>)}
</div>
</div>
);
}Usage
import { ProfileCard } from "@/components/site/widgets/profile-card"Exports
ProfileCard
Dependencies
react-icons@^5.7.0(npm)@vcare/site-kit(registry)@vcare/site-theme(registry)
Raw item: /r/site-profile-card.json