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 screens
Queue Screen
The queue step: today's counts and a board of patients from check in to consultation.
import { QueueScreen } from "@/registry/vcare/site/screens/queue-screen"
export default function SiteQueueScreenDemo() {
// Screens fill the main area beside the side nav, about 600 px wide.
return (
<div className="vc-site grid place-items-center overflow-x-auto rounded-2xl bg-[#f5f6f8] p-6">
<div className="w-full max-w-[640px]">
<QueueScreen />
</div>
</div>
)
}Installation
npx shadcn@latest add @vcare/site-queue-screenOr install directly from the URL: https://ui.vcarehms.com/r/site-queue-screen.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/screens/queue-screen.tsx
import { Badge, Item } from '../ui/kit';
/** The queue step: today's counts and a board of patients from check in to consultation. */
export function QueueScreen() {
const cols = [['Checked in', 'bg-slate-400', [['Daniel Reed', 'New visit'], ['Emma Clarke', 'Walk in']]], ['Vitals check', 'bg-amber-400', [['Anna Meyer', 'Follow up'], ['Sofia Novak', 'Physio']]], ['In consultation', 'bg-blue-600', [['James Carter', 'Dr. Rivera']]]] as const;
return (
<div className="space-y-3">
<Item i={0} className="grid grid-cols-4 gap-2">{[['Today', '42'], ['Checked in', '18'], ['Waiting', '6'], ['Completed', '11']].map(([l, v]) => <div key={l} className="rounded-xl bg-white p-2.5 ring-1 ring-black/[0.06]"><p className="text-[10.5px] text-[#6b7280]">{l}</p><p className="text-[17px] font-bold text-ink">{v}</p></div>)}</Item>
<div className="grid grid-cols-3 gap-2.5">
{cols.map(([t, c, cards], i) => (
<Item key={t} i={i + 1} className="rounded-2xl bg-[#f4f5f7] p-2.5">
<p className="mb-2 flex items-center gap-1.5 text-[11px] font-semibold text-[#4b5160]"><span className={`h-2 w-2 rounded-full ${c}`} />{t}</p>
<div className="space-y-2">{cards.map(([n, st]) => (
<div key={n} className="rounded-xl bg-white p-2.5 shadow-[0_1px_2px_rgb(15_27_45/0.06)] ring-1 ring-black/[0.05]"><p className="truncate text-[12px] font-semibold text-ink">{n}</p><Badge tone="blue" className="mt-1.5">{st}</Badge></div>
))}</div>
</Item>
))}
</div>
</div>
);
}Usage
import { QueueScreen } from "@/components/site/screens/queue-screen"Exports
QueueScreen
Dependencies
@vcare/site-kit(registry)@vcare/site-theme(registry)
Raw item: /r/site-queue-screen.json