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
Product minis
Payment Mini
A payment received with its method and receipt number.
import { PaymentMini } from "@/registry/vcare/site/minis/payment-mini"
export default function SitePaymentMiniDemo() {
// The width of a Gallery tile.
return (
<div className="vc-site grid place-items-center overflow-x-auto rounded-2xl bg-[#f5f6f8] p-6">
<div className="w-[240px]">
<PaymentMini />
</div>
</div>
)
}Installation
npx shadcn@latest add @vcare/site-payment-miniOr install directly from the URL: https://ui.vcarehms.com/r/site-payment-mini.json
- Install the dependencies:
npm i react-icons - Add the registry items it uses: site-mini-card, site-theme.
- Copy this file into your project and change the
@/registry/vcare/…imports to your own paths.
components/site/minis/payment-mini.tsx
import { MiniCard } from './mini-card';
import { LuCheck } from 'react-icons/lu';
const sub = 'text-[#6b7280]';
/** A payment received with its method and receipt number. */
export function PaymentMini({ amount = '$105 received', detail = 'UPI · R10019' }: { amount?: string; detail?: string }) {
return (
<MiniCard className="flex items-center gap-2.5">
<span className="grid h-8 w-8 place-items-center rounded-full bg-[#e3f6ea] text-[#166534]"><LuCheck size={15} strokeWidth={3} /></span>
<span><span className="block font-semibold text-ink">{amount}</span><span className={sub}>{detail}</span></span>
</MiniCard>
);
}Usage
import { PaymentMini } from "@/components/site/minis/payment-mini"Exports
PaymentMini
Dependencies
react-icons@^5.7.0(npm)@vcare/site-mini-card(registry)@vcare/site-theme(registry)
Raw item: /r/site-payment-mini.json