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
Patterns
Kv
A compact label and value tile.
import { KV } from "@/registry/vcare/ui/kv"
export default function KVDemo() {
return (
<div className="grid w-full max-w-md grid-cols-2 gap-2">
<KV label="Billed">₹12,480</KV>
<KV label="Paid">₹10,000</KV>
<KV label="Due">₹2,480</KV>
<KV label="Visits">6</KV>
</div>
)
}Installation
npx shadcn@latest add @vcare/kvOr install directly from the URL: https://ui.vcarehms.com/r/kv.json
- Add the registry items it uses: utils.
- Copy this file into your project and change the
@/registry/vcare/…imports to your own paths.
components/ui/kv.tsx
import type { ReactNode } from 'react';
import { cn } from '@/registry/vcare/lib/utils';
/** Compact label/value tile (reference "Account summary" cards). */
export function KV({ label, children, className }: { label: string; children: ReactNode; className?: string }) {
return (
<div className={cn('min-w-0 rounded-lg border bg-card px-3 py-2', className)}>
<dt className="text-xs text-subtle">{label}</dt>
<dd className="mt-0.5 text-sm font-medium break-words">{children}</dd>
</div>
);
}Usage
import { KV } from "@/components/ui/kv"Exports
KV
Dependencies
@vcare/utils(registry)
Raw item: /r/kv.json