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
Orders Screen
The orders step: lab, imaging, pharmacy and referral orders for the visit, each with its status.
import { OrdersScreen } from "@/registry/vcare/site/screens/orders-screen"
export default function SiteOrdersScreenDemo() {
// 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]">
<OrdersScreen />
</div>
</div>
)
}Installation
npx shadcn@latest add @vcare/site-orders-screenOr install directly from the URL: https://ui.vcarehms.com/r/site-orders-screen.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/screens/orders-screen.tsx
import { LuFlaskConical, LuPill, LuScanLine, LuStethoscope } from 'react-icons/lu';
import { Badge, Item, Panel } from '../ui/kit';
/** The orders step: lab, imaging, pharmacy and referral orders for the visit, each with its status. */
export function OrdersScreen() {
const rows = [[LuFlaskConical, 'CBC and lipid profile', 'Lab', 'Sample collected', 'amber'], [LuScanLine, 'Chest X-ray', 'Imaging', 'Scheduled', 'blue'], [LuPill, 'Amoxicillin 500mg', 'Pharmacy', 'To dispense', 'violet'], [LuStethoscope, 'Cardiology referral', 'Referral', 'Sent', 'green']] as const;
return (
<Panel title="Orders for this visit">
{rows.map(([Icon, n, d, s, tone], i) => (
<Item key={n} i={i} className="flex items-center gap-3 border-b border-[#f1f2f5] px-4 py-2.5 last:border-0"><span className="grid h-8 w-8 place-items-center rounded-lg bg-[#f1f2f5] text-[#4b5160]"><Icon size={15} /></span><div className="flex-1 leading-tight"><p className="text-[12.5px] font-semibold text-ink">{n}</p><p className="text-[11px] text-[#6b7280]">{d}</p></div><Badge tone={tone}>{s}</Badge></Item>
))}
</Panel>
);
}Usage
import { OrdersScreen } from "@/components/site/screens/orders-screen"Exports
OrdersScreen
Dependencies
react-icons@^5.7.0(npm)@vcare/site-kit(registry)@vcare/site-theme(registry)
Raw item: /r/site-orders-screen.json