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
Finance Panel
Accounts: cash and receivables, and revenue for the last 14 days as bars.
import Finance from "@/registry/vcare/site/panels/Finance"
export default function SiteFinancePanelDemo() {
// 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]">
<Finance />
</div>
</div>
)
}Installation
npx shadcn@latest add @vcare/site-finance-panelOr install directly from the URL: https://ui.vcarehms.com/r/site-finance-panel.json
- Install the dependencies:
npm i motion 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/Finance.tsx
import { motion } from 'motion/react';
import { LuBanknote, LuHourglass } from 'react-icons/lu';
import { Item, Kpi, Panel } from '../ui/kit';
const bars = [34, 48, 40, 58, 52, 66, 56, 72, 64, 60, 78, 70, 86, 94];
export default function Finance() {
return (
<Panel>
<div className="grid grid-cols-2 gap-2 p-3">
<Kpi icon={<LuBanknote size={16} />} label="Cash and bank" value="$2.15M" tone="green" />
<Kpi icon={<LuHourglass size={16} />} label="Receivable" value="$2,076" tone="amber" />
</div>
<Item i={1} className="mx-3 mb-3 rounded-xl bg-white p-3 ring-1 ring-black/[0.06]">
<p className="text-[12px] font-bold text-ink">Revenue, last 14 days</p>
<div className="mt-3 flex h-24 items-end gap-1.5">
{bars.map((h, i) => (
<motion.div key={i} className="flex-1 rounded-t bg-gradient-to-t from-primary to-[#7aa5ff]" initial={{ height: 0 }} whileInView={{ height: `${h}%` }} viewport={{ once: true }} transition={{ duration: 0.8, delay: 0.3 + i * 0.04, ease: [0.25, 1, 0.5, 1] }} />
))}
</div>
</Item>
</Panel>
);
}Usage
import Finance from "@/components/site/panels/Finance"
<Finance />Exports
Finance (default)
Dependencies
motion@^14.14.0(npm)react-icons@^5.7.0(npm)@vcare/site-kit(registry)@vcare/site-theme(registry)
Raw item: /r/site-finance-panel.json