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
Stock Mini
An item's stock level bar with a status.
import { StockMini } from "@/registry/vcare/site/minis/stock-mini"
export default function SiteStockMiniDemo() {
// 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]">
<StockMini />
</div>
</div>
)
}Installation
npx shadcn@latest add @vcare/site-stock-miniOr install directly from the URL: https://ui.vcarehms.com/r/site-stock-mini.json
- Add the registry items it uses: site-kit, site-mini-card, site-theme.
- Copy this file into your project and change the
@/registry/vcare/…imports to your own paths.
components/site/minis/stock-mini.tsx
import { MiniCard } from './mini-card';
import { Badge } from '../ui/kit';
/** An item's stock level bar with a status. */
export function StockMini({ item = 'Amoxicillin', status = 'Low', level = 0.33 }: { item?: string; status?: string; level?: number }) {
return (
<MiniCard>
<div className="flex justify-between font-semibold text-ink"><span>{item}</span><Badge tone="amber">{status}</Badge></div>
<div className="mt-2 h-1.5 rounded-full bg-[#eef0f3]"><div className="h-full rounded-full bg-[#eba11d]" style={{ width: `${Math.round(level * 100)}%` }} /></div>
</MiniCard>
);
}Usage
import { StockMini } from "@/components/site/minis/stock-mini"Exports
StockMini
Dependencies
@vcare/site-kit(registry)@vcare/site-mini-card(registry)@vcare/site-theme(registry)
Raw item: /r/site-stock-mini.json