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
Imaging Panel
Imaging: a CT study being reported, with the viewer and status.
import Imaging from "@/registry/vcare/site/panels/Imaging"
export default function SiteImagingPanelDemo() {
// 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]">
<Imaging />
</div>
</div>
)
}Installation
npx shadcn@latest add @vcare/site-imaging-panelOr install directly from the URL: https://ui.vcarehms.com/r/site-imaging-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/Imaging.tsx
import { LuCheck } from 'react-icons/lu';
import { Badge, Item, Panel } from '../ui/kit';
const steps = ['Received', 'Scanned', 'Reported', 'Verified'];
export default function Imaging() {
return (
<Panel title="CT chest · James Carter" action={<Badge tone="blue">Reporting</Badge>}>
<div className="flex gap-3 p-4">
<Item i={0} className="relative h-24 w-24 shrink-0 overflow-hidden rounded-xl bg-[#0f1b2d]">
<div className="absolute inset-2.5 rounded-full border border-white/25 bg-[radial-gradient(circle,#8ea0b6_0%,#46566b_55%,#1b2636_100%)]" />
<div className="absolute inset-6 rounded-full border border-white/20" />
<div className="absolute left-1/2 top-2 h-[calc(100%-16px)] w-px bg-white/20" />
<div className="absolute left-2 top-1/2 h-px w-[calc(100%-16px)] bg-white/20" />
<span className="absolute bottom-1 left-2 text-[9px] font-semibold text-white/70">Img 24 of 96</span>
</Item>
<div className="flex-1 space-y-2.5">
{steps.map((s, i) => (
<Item key={s} i={i + 1} className="flex items-center gap-2 text-[12px]">
<span className={`grid h-4.5 w-4.5 place-items-center rounded-full ${i < 2 ? 'bg-vcare text-white' : i === 2 ? 'bg-primary/15 ring-2 ring-primary' : 'bg-[#f1f2f5]'}`} style={{ height: 18, width: 18 }}>{i < 2 && <LuCheck size={11} strokeWidth={3.5} />}</span>
<span className={i <= 2 ? 'font-semibold text-ink' : 'text-[#9aa0ad]'}>{s}</span>
</Item>
))}
</div>
</div>
</Panel>
);
}Usage
import Imaging from "@/components/site/panels/Imaging"
<Imaging />Exports
Imaging (default)
Dependencies
react-icons@^5.7.0(npm)@vcare/site-kit(registry)@vcare/site-theme(registry)
Raw item: /r/site-imaging-panel.json