{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "empty-state",
  "type": "registry:block",
  "title": "Empty State",
  "description": "An empty state with a buddy, a short message and one clear next step, for lists and boards with nothing in them yet.",
  "categories": [
    "blocks"
  ],
  "dependencies": [
    "@plop-ui/react",
    "@plop-ui/fonts"
  ],
  "registryDependencies": [
    "https://plopui.com/r/plop-setup.json"
  ],
  "files": [
    {
      "path": "registry/plopui/empty-state.tsx",
      "type": "registry:component",
      "target": "components/plop/empty-state.tsx",
      "content": "\"use client\";\n\nimport type { CSSProperties } from \"react\";\nimport { Buddy, Button, Heading, type BuddyMood } from \"@plop-ui/react\";\n\nexport interface EmptyStateBlockProps {\n  title?: string;\n  message?: string;\n  actionLabel?: string;\n  onAction?: () => void;\n  mood?: BuddyMood;\n}\n\n/** An empty state with a buddy, a short message and one clear next step, for lists and boards with nothing in them yet. */\nexport function EmptyStateBlock({\n  title = \"Nothing here yet\",\n  message = \"Your sketchbook is empty. Start with one quick doodle; it doesn't have to be good.\",\n  actionLabel = \"Post your first sketch\",\n  onAction,\n  mood = \"preview\",\n}: EmptyStateBlockProps) {\n  return (\n    <section style={wrap} aria-labelledby=\"plop-empty-title\">\n      <Buddy mood={mood} size=\"lg\" />\n      <Heading level={3} id=\"plop-empty-title\">\n        {title}\n      </Heading>\n      <p style={text}>{message}</p>\n      <Button variant=\"ink\" burst onClick={onAction}>\n        {actionLabel}\n      </Button>\n    </section>\n  );\n}\n\nconst wrap: CSSProperties = { display: \"grid\", justifyItems: \"center\", gap: 14, padding: \"40px 24px\", textAlign: \"center\", maxWidth: 420, margin: \"0 auto\" };\nconst text: CSSProperties = { margin: \"0 0 10px\", color: \"var(--plop-on-soft)\" };\n"
    }
  ]
}
