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
Pharmacy Panel
Pharmacy: prescriptions to verify, dispense and dispensed, with interaction flags per patient.
import Pharmacy from "@/registry/vcare/site/panels/Pharmacy"
export default function SitePharmacyPanelDemo() {
// The width of a half-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-[520px]">
<Pharmacy />
</div>
</div>
)
}Installation
npx shadcn@latest add @vcare/site-pharmacy-panelOr install directly from the URL: https://ui.vcarehms.com/r/site-pharmacy-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/Pharmacy.tsx
import { LuCheck, LuTriangleAlert } from 'react-icons/lu';
import { Avatar, Badge, Item, Panel } from '../ui/kit';
const rows = [
['Maria Lopez', 'NV000006', 'Aspirin 75mg, Clopidogrel 75mg', 'review', '2 to review'],
['Daniel Reed', 'NV000011', 'Amoxicillin 500mg, Paracetamol', 'review', '1 to review'],
['Anna Meyer', 'NV000002', 'Cetirizine 10mg', 'ok', 'Clear'],
['Adam Fischer', 'NV000001', 'Paracetamol 500mg', 'ok', 'Clear'],
['James Carter', 'NV000005', 'Ibuprofen 400mg, Pantoprazole', 'review', '1 to review'],
] as const;
export default function Pharmacy() {
return (
<Panel>
<div className="flex gap-1 border-b border-[#ebecf0] px-3 pt-2.5 text-[12px] font-medium">
{[['To verify', 6, true], ['To dispense', 1], ['Dispensed', 3]].map(([t, n, on]) => (
<span key={String(t)} className={`flex items-center gap-1.5 border-b-2 px-2 pb-2 ${on ? 'border-primary text-primary' : 'border-transparent text-[#6b7280]'}`}>{t}<span className="rounded bg-[#f1f2f5] px-1.5 text-[10.5px] text-[#4b5160]">{String(n)}</span></span>
))}
</div>
{rows.map(([n, id, med, kind, label], i) => (
<Item key={id} i={i} className="flex items-center gap-3 border-b border-[#f1f2f5] px-4 py-2.5 last:border-0">
<Avatar name={n} />
<div className="min-w-0 flex-1 leading-tight"><p className="truncate text-[12.5px] font-semibold text-ink">{n}</p><p className="truncate text-[11px] text-[#6b7280]">{med}</p></div>
{kind === 'review' ? <Badge tone="red"><LuTriangleAlert size={11} />{label}</Badge> : <Badge tone="green"><LuCheck size={11} strokeWidth={3} />{label}</Badge>}
</Item>
))}
</Panel>
);
}Usage
import Pharmacy from "@/components/site/panels/Pharmacy"
<Pharmacy />Exports
Pharmacy (default)
Dependencies
react-icons@^5.7.0(npm)@vcare/site-kit(registry)@vcare/site-theme(registry)
Raw item: /r/site-pharmacy-panel.json