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
Checkout Screen
The checkout step: payment taken and posted to the books.
import { CheckoutScreen } from "@/registry/vcare/site/screens/checkout-screen"
export default function SiteCheckoutScreenDemo() {
// 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]">
<CheckoutScreen />
</div>
</div>
)
}Installation
npx shadcn@latest add @vcare/site-checkout-screenOr install directly from the URL: https://ui.vcarehms.com/r/site-checkout-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/checkout-screen.tsx
import { LuCheck, LuCreditCard, LuQrCode, LuSmartphone } from 'react-icons/lu';
import { Btn, Item, Panel } from '../ui/kit';
/** The checkout step: payment taken and posted to the books. */
export function CheckoutScreen() {
return (
<div className="space-y-3">
<Item i={0} className="grid grid-cols-3 gap-2">{[[LuQrCode, 'UPI', true], [LuCreditCard, 'Card', false], [LuSmartphone, 'Cash', false]].map(([I, l, on]) => { const Icon = I as typeof LuQrCode; return <span key={String(l)} className={`flex flex-col items-center gap-1.5 rounded-xl p-3 text-[12px] font-semibold ${on ? 'bg-primary text-white' : 'bg-white text-ink ring-1 ring-black/[0.08]'}`}><Icon size={18} />{String(l)}</span>; })}</Item>
<Item i={1}><Panel><div className="flex items-center gap-3 p-4"><span className="grid h-10 w-10 place-items-center rounded-full bg-[#e3f6ea] text-[#166534]"><LuCheck size={20} strokeWidth={3} /></span><div className="flex-1 leading-tight"><p className="text-[14px] font-bold text-ink">$105 received</p><p className="text-[11.5px] text-[#6b7280]">Receipt R10019 · posted to the ledger</p></div><Btn variant="outline">Print</Btn></div></Panel></Item>
<Item i={2}><Panel title="Posted to the books">{[['Cash and bank', '+ $105'], ['Receivable from insurer', '+ $205'], ['Revenue', '- $310']].map(([l, v]) => <div key={l} className="flex justify-between border-b border-[#f1f2f5] px-4 py-2.5 text-[12px] last:border-0"><span className="text-[#4b5160]">{l}</span><span className="font-semibold text-ink">{v}</span></div>)}</Panel></Item>
</div>
);
}Usage
import { CheckoutScreen } from "@/components/site/screens/checkout-screen"Exports
CheckoutScreen
Dependencies
react-icons@^5.7.0(npm)@vcare/site-kit(registry)@vcare/site-theme(registry)
Raw item: /r/site-checkout-screen.json