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
Hr Panel
HR and payroll: a payslip with earnings, deductions and net pay.
import Hr from "@/registry/vcare/site/panels/Hr"
export default function SiteHrPanelDemo() {
// 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]">
<Hr />
</div>
</div>
)
}Installation
npx shadcn@latest add @vcare/site-hr-panelOr install directly from the URL: https://ui.vcarehms.com/r/site-hr-panel.json
- 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/Hr.tsx
import { Avatar, Badge, Item, Panel } from '../ui/kit';
const staff = [
['Grace Chen', 'Mon', 'Morning', 'blue'], ['Henry Boyd', 'Mon', 'Evening', 'violet'], ['Alice Turner', 'Mon', 'Night', 'neutral'],
] as const;
export default function Hr() {
return (
<Panel title="Payslip · October" action={<Badge tone="green">Paid</Badge>}>
<div className="p-4">
<Item i={0} className="flex items-end justify-between"><div><p className="text-[11px] text-[#6b7280]">Net pay</p><p className="text-2xl font-bold text-ink">$4,238</p></div><div className="text-right text-[11px] text-[#6b7280]"><p>Pension $360 · Health $64</p><p>Tax $20</p></div></Item>
<div className="mt-3 space-y-1.5">
{staff.map(([n, d, s, tone], i) => (
<Item key={n} i={i + 1} className="flex items-center gap-2.5 text-[12px]"><Avatar name={n} size={24} /><span className="flex-1 font-semibold text-ink">{n}</span><span className="text-[11px] text-[#6b7280]">{d}</span><Badge tone={tone}>{s}</Badge></Item>
))}
</div>
</div>
</Panel>
);
}Usage
import Hr from "@/components/site/panels/Hr"
<Hr />Exports
Hr (default)
Dependencies
@vcare/site-kit(registry)@vcare/site-theme(registry)
Raw item: /r/site-hr-panel.json