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
Slot Picker Mini
Appointment slots with one picked and one taken.
import { SlotPickerMini } from "@/registry/vcare/site/minis/slot-picker-mini"
export default function SiteSlotPickerMiniDemo() {
// 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]">
<SlotPickerMini />
</div>
</div>
)
}Installation
npx shadcn@latest add @vcare/site-slot-picker-miniOr install directly from the URL: https://ui.vcarehms.com/r/site-slot-picker-mini.json
- 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/slot-picker-mini.tsx
import { MiniCard } from './mini-card';
/** Appointment slots with one picked and one taken. */
export function SlotPickerMini({ slots = ['09:30', '10:00', '10:30', '11:15', '11:45', '12:30'], selected = 2, taken = [1] }: { slots?: string[]; selected?: number; taken?: number[] }) {
return (
<MiniCard>
<div className="grid grid-cols-3 gap-1.5">
{slots.map((t, i) => (
<span key={t} className={`rounded-md py-1 text-center font-semibold ${i === selected ? 'bg-primary text-white' : taken.includes(i) ? 'bg-[#f1f2f5] text-[#b4b9c4] line-through' : 'bg-[#f4f5f7] text-ink'}`}>{t}</span>
))}
</div>
</MiniCard>
);
}Usage
import { SlotPickerMini } from "@/components/site/minis/slot-picker-mini"Exports
SlotPickerMini
Dependencies
@vcare/site-mini-card(registry)@vcare/site-theme(registry)
Raw item: /r/site-slot-picker-mini.json