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 panels
Lab Panel
Laboratory: a CBC result with reference ranges and flagged values.
import Lab from "@/registry/vcare/site/panels/Lab"
export default function SiteLabPanelDemo() {
// The width of a third-width Departments card.
return (
<div className="vc-site grid place-items-center overflow-x-auto rounded-2xl bg-[#f5f6f8] p-6">
<div className="w-full max-w-[340px]">
<Lab />
</div>
</div>
)
}Installation
npx shadcn@latest add @vcare/site-lab-panelOr install directly from the URL: https://ui.vcarehms.com/r/site-lab-panel.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/panels/Lab.tsx
import { LuCheck } from 'react-icons/lu';
import { Badge, Btn, Item, Panel } from '../ui/kit';
const rows = [
['Haemoglobin', '10.4 g/dL', '12 to 15', 'Low', 'red'],
['WBC count', '7,200', '4,000 to 11,000', 'Normal', 'green'],
['Platelets', '190 K/µL', '150 to 410', 'Normal', 'green'],
['Glucose (F)', '118 mg/dL', '70 to 100', 'High', 'amber'],
] as const;
export default function Lab() {
return (
<Panel title="CBC · Maria Lopez" action={<Btn><LuCheck size={12} strokeWidth={3} />Verify</Btn>}>
<div className="px-4 py-1.5">
{rows.map(([t, v, r, f, tone], i) => (
<Item key={t} i={i} className="grid grid-cols-[1.2fr_1fr_1fr_auto] items-center gap-2 border-b border-[#f1f2f5] py-2 text-[12px] last:border-0">
<span className="font-semibold text-ink">{t}</span><span className="text-ink">{v}</span><span className="hidden text-[11px] text-[#6b7280] sm:block">{r}</span><Badge tone={tone}>{f}</Badge>
</Item>
))}
</div>
</Panel>
);
}Usage
import Lab from "@/components/site/panels/Lab"
<Lab />Exports
Lab (default)
Dependencies
react-icons@^5.7.0(npm)@vcare/site-kit(registry)@vcare/site-theme(registry)
Raw item: /r/site-lab-panel.json