{ "name": "empty-state", "type": "registry:ui", "title": "Empty State", "description": "Placeholder shown when a list or search has no results.", "dependencies": [ "cn@^0.3.0" ], "registryDependencies": [ "https://raw.githubusercontent.com/wunder-ui/wunderui/main/r/styles.json" ], "files": [ { "path": "components/wunderui/stat-card.tsx", "type": "registry:component", "target": "components/wunderui/stat-card.tsx", "content": "\"use client\"\r\n\r\nimport { type ReactNode } from \"react\"\r\nimport { cn } from \"@/lib/utils\"\r\n\r\nconst EMPTY_STATE_VARIANTS = {\r\n /** No frame and no line — centered content on the white card surface (Figma Style=default). */\r\n default: \"rounded-xl bg-card\",\r\n outline: \"rounded-xl border border-border bg-card\",\r\n dashed: \"rounded-xl border border-dashed border-border bg-card\",\r\n background: \"rounded-2xl bg-muted/60\",\r\n} as const\r\n\r\nfunction EmptyState({\r\n icon,\r\n title,\r\n description,\r\n action,\r\n variant = \"dashed\",\r\n className,\r\n}: {\r\n icon?: ReactNode\r\n title: string\r\n description?: string\r\n action?: ReactNode\r\n /** Frame style — mirrors the Figma Empty State \"Style\" variants. */\r\n variant?: keyof typeof EMPTY_STATE_VARIANTS\r\n className?: string\r\n}) {\r\n return (\r\n
{title}
\r\n {description &&{description}
}\r\n