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
Empty State
Nothing to show: a picture, what that means and what to do next.
import { Button } from "@/registry/vcare/ui/button"
import { EmptyState } from "@/registry/vcare/ui/empty-state"
export default function EmptyStateDemo() {
return (
<EmptyState title="No bills yet" picture="states/empty-bills">
<Button size="sm">Create bill</Button>
</EmptyState>
)
}Installation
npx shadcn@latest add @vcare/empty-stateOr install directly from the URL: https://ui.vcarehms.com/r/empty-state.json
- Add the registry items it uses: art.
- Copy this file into your project and change the
@/registry/vcare/…imports to your own paths.
components/ui/empty-state.tsx
import type { ReactNode } from 'react';
import { art, type ArtName } from '@/registry/vcare/lib/art';
/** Nothing to show: a picture, what that means, and optionally what to do next. `picture` picks another illustration. */
export function EmptyState({ title, children, picture = 'states/empty-search' }: { title: string; children?: ReactNode; picture?: ArtName | false }) {
return (
<div className="grid place-items-center gap-2 px-4 py-10 text-center">
{picture && <img src={art(picture)} alt="" aria-hidden className="h-28 w-auto" />}
<p className="text-sm font-medium text-muted-foreground">{title}</p>
{children}
</div>
);
}Usage
import { EmptyState } from "@/components/ui/empty-state"Exports
EmptyState
Dependencies
@vcare/art(registry)
Raw item: /r/empty-state.json