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
Crm Panel
Patient CRM: a WhatsApp conversation that ends in a booking.
import Crm from "@/registry/vcare/site/panels/Crm"
export default function SiteCrmPanelDemo() {
// 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]">
<Crm />
</div>
</div>
)
}Installation
npx shadcn@latest add @vcare/site-crm-panelOr install directly from the URL: https://ui.vcarehms.com/r/site-crm-panel.json
- Install the dependencies:
npm i 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/Crm.tsx
import { LuCalendarCheck } from 'react-icons/lu';
import { Avatar, Badge, Btn, Item, Panel } from '../ui/kit';
export default function Crm() {
return (
<Panel title={<span className="flex items-center gap-2"><Avatar name="Emma Clarke" size={24} />Emma Clarke</span>} action={<Badge tone="green">WhatsApp</Badge>}>
<div className="space-y-2 p-4 text-[12px]">
<Item i={0} className="max-w-[80%] rounded-2xl rounded-bl-md bg-[#f1f2f5] px-3 py-2 text-ink">Do you have a cardiologist tomorrow?</Item>
<Item i={1} className="ml-auto max-w-[80%] rounded-2xl rounded-br-md bg-primary px-3 py-2 text-white">Yes, 10:30 with Dr. Rivera. Shall I book it?</Item>
<Item i={2} className="flex items-center justify-between gap-2 rounded-xl bg-[#e3f4f1] p-2.5">
<span className="flex items-center gap-2 font-semibold text-[#0b7f73]"><LuCalendarCheck size={14} />Tomorrow 10:30</span>
<Btn>Book now</Btn>
</Item>
</div>
</Panel>
);
}Usage
import Crm from "@/components/site/panels/Crm"
<Crm />Exports
Crm (default)
Dependencies
react-icons@^5.7.0(npm)@vcare/site-kit(registry)@vcare/site-theme(registry)
Raw item: /r/site-crm-panel.json