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 kit
Feedback panel
"Doctors told us…": a user's quote in the product's panel style, with a Solved badge or any status.
import { Badge } from "@/registry/vcare/site/ui/kit"
import { FeedbackPanel } from "@/registry/vcare/site/components/feedback-panel"
export default function SiteFeedbackPanelDemo() {
return (
<div className="vc-site mx-auto grid max-w-md gap-3 p-4">
<FeedbackPanel who="Nurses" color="var(--rx)">Finding out which bed needs what, on a busy shift.</FeedbackPanel>
<FeedbackPanel who="Front desk" color="var(--brain)" status={<Badge tone="amber">In progress</Badge>}>
Two searches and a long form for every walk in.
</FeedbackPanel>
</div>
)
}Installation
npx shadcn@latest add @vcare/site-feedback-panelOr install directly from the URL: https://ui.vcarehms.com/r/site-feedback-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/components/feedback-panel.tsx
import type { ReactNode } from 'react';
import { LuCheck, LuMessageSquareQuote } from 'react-icons/lu';
import { Badge, Panel } from '../ui/kit';
/** "<who> told us": a quote from a user in the product's own panel style, with a Solved badge (or any status you pass). */
export function FeedbackPanel({
who,
children,
color = 'var(--primary)',
status = (
<Badge tone="green">
<LuCheck size={11} strokeWidth={3} aria-hidden="true" />
Solved
</Badge>
),
}: {
who: string;
/** What they said. */
children: ReactNode;
/** Colour of the quote icon. */
color?: string;
status?: ReactNode;
}) {
return (
<Panel
title={
<span className="flex items-center gap-1.5 text-[12px]">
<LuMessageSquareQuote size={13} style={{ color }} aria-hidden="true" />
{who} told us
</span>
}
action={status}
>
<p className="px-4 py-3.5 text-[13px] leading-relaxed text-[#4b5160]">{children}</p>
</Panel>
);
}Usage
import { FeedbackPanel } from "@/components/site/components/feedback-panel"Exports
FeedbackPanel
Dependencies
react-icons@^5.7.0(npm)@vcare/site-kit(registry)@vcare/site-theme(registry)
Raw item: /r/site-feedback-panel.json