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
Insurance Panel
Insurance: a claim's progress and the insurer and patient shares.
import Insurance from "@/registry/vcare/site/panels/Insurance"
export default function SiteInsurancePanelDemo() {
// 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]">
<Insurance />
</div>
</div>
)
}Installation
npx shadcn@latest add @vcare/site-insurance-panelOr install directly from the URL: https://ui.vcarehms.com/r/site-insurance-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/Insurance.tsx
import { LuCheck } from 'react-icons/lu';
import { Badge, Item, Panel } from '../ui/kit';
const steps = [['Eligibility', 'done'], ['Pre authorisation', 'done'], ['Claim submitted', 'now'], ['Settled', 'next']] as const;
export default function Insurance() {
return (
<Panel title="Claim CL-20418" action={<Badge tone="teal">$4,850</Badge>}>
<div className="p-4">
<div className="flex items-center">
{steps.map(([s, st], i) => (
<Item key={s} i={i} className="flex flex-1 items-center last:flex-none">
<span className={`grid h-6 w-6 shrink-0 place-items-center rounded-full text-[10.5px] font-bold ${st === 'done' ? 'bg-vcare text-white' : st === 'now' ? 'bg-primary text-white ring-4 ring-primary/15' : 'bg-[#f1f2f5] text-[#9aa0ad]'}`}>{st === 'done' ? <LuCheck size={12} strokeWidth={3.5} /> : i + 1}</span>
{i < steps.length - 1 && <span className={`mx-1.5 h-0.5 flex-1 rounded ${st === 'done' ? 'bg-vcare' : 'bg-[#e6e8ed]'}`} />}
</Item>
))}
</div>
<div className="mt-2 grid grid-cols-4 gap-1 text-[10.5px] text-[#6b7280]">{steps.map(([s]) => <span key={s} className="leading-tight">{s}</span>)}</div>
<Item i={4} className="mt-4 flex items-center justify-between rounded-xl bg-[#f7f7f9] p-3 text-[12px]"><span className="text-[#6b7280]">Insurer share</span><span className="font-bold text-ink">$3,880</span></Item>
</div>
</Panel>
);
}Usage
import Insurance from "@/components/site/panels/Insurance"
<Insurance />Exports
Insurance (default)
Dependencies
react-icons@^5.7.0(npm)@vcare/site-kit(registry)@vcare/site-theme(registry)
Raw item: /r/site-insurance-panel.json