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
Queue Mini
A live queue board in three columns: checked in, vitals check and with doctor.
import { QueueMini } from "@/registry/vcare/site/widgets/queue-mini"
export default function SiteQueueMiniDemo() {
// 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-[260px]">
<QueueMini />
</div>
</div>
)
}Installation
npx shadcn@latest add @vcare/site-queue-miniOr install directly from the URL: https://ui.vcarehms.com/r/site-queue-mini.json
- Add the registry items it uses: site-theme.
- Copy this file into your project and change the
@/registry/vcare/…imports to your own paths.
components/site/widgets/queue-mini.tsx
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]';
/** A live queue board in three columns: checked in, vitals check and with doctor. */
export function QueueMini() {
const cols: [string, string, string[]][] = [['Checked in', '#94a3b8', ['Daniel Reed', 'Emma Clarke']], ['Vitals check', '#f59e0b', ['Anna Meyer']], ['With doctor', '#2563eb', ['James Carter']]];
return (
<div className={`${card} h-full`}>
<p className="text-[13px] font-semibold text-ink">Live queue</p>
{/* Three columns when there is room for them, stacked rows in a narrow box. */}
<div className="@container mt-3">
<div className="grid gap-2 @[340px]:grid-cols-3">
{cols.map(([t, c, names]) => (
<div key={t} className="min-w-0 rounded-xl bg-[#f4f5f7] p-2">
<p className="mb-2 flex items-center gap-1.5 truncate text-[10.5px] font-semibold text-[#4b5160]"><i className="h-1.5 w-1.5 shrink-0 rounded-full" style={{ background: c }} />{t}</p>
<div className="flex flex-wrap gap-1.5 @[340px]:block">
{names.map((n) => <div key={n} className="truncate rounded-lg bg-white px-2 py-1.5 text-[11px] font-semibold text-ink shadow-[0_1px_2px_rgb(15_27_45/0.06)] @[340px]:mb-1.5 @[340px]:p-2">{n}</div>)}
</div>
</div>
))}
</div>
</div>
</div>
);
}Usage
import { QueueMini } from "@/components/site/widgets/queue-mini"Exports
QueueMini
Dependencies
@vcare/site-theme(registry)
Raw item: /r/site-queue-mini.json