{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "empty-state-01",
  "title": "Empty states",
  "description": "A reusable EmptyState and the three a product needs: first run, no search results and a failed load. Renders in any Satori UI design system (cueit, skita, folio or a generated one): install a system first.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "button"
  ],
  "files": [
    {
      "path": "design-systems/blocks/empty-state-01.tsx",
      "content": "import * as React from \"react\";\nimport { FolderPlus, RefreshCw, SearchX, ServerCrash } from \"lucide-react\";\nimport { Button } from \"@/components/ui/button\";\nimport { cn } from \"@/lib/utils\";\n\n/**\n * Empty states: what a screen shows before there is anything in it, when a\n * search finds nothing, and when loading failed.\n *\n * `EmptyState` is the reusable part; `EmptyStates01` lays out the three\n * cases a product needs, as a reference. Each one says what happened, why,\n * and offers the one action that fixes it. An error says what failed in\n * plain words and never blames the reader.\n *\n * Written against the block contract only, so it takes the look of\n * whichever design system scopes it.\n */\n\nexport type EmptyStateProps = Omit<React.ComponentProps<\"div\">, \"title\"> & {\n  icon: React.ReactNode;\n  title: string;\n  description: string;\n  /** One primary action, and optionally a quieter second one. */\n  actions?: React.ReactNode;\n  /** \"panel\" draws its own surface; \"bare\" sits inside a card you already have. */\n  variant?: \"panel\" | \"bare\";\n  /** Announce the state to screen readers when it replaces content. */\n  live?: boolean;\n};\n\nexport function EmptyState({\n  icon,\n  title,\n  description,\n  actions,\n  variant = \"panel\",\n  live,\n  className,\n  ...props\n}: EmptyStateProps) {\n  return (\n    <div\n      role={live ? \"status\" : undefined}\n      className={cn(\n        \"flex flex-col items-center justify-center gap-4 px-6 py-12 text-center\",\n        variant === \"panel\" && \"ds-tile\",\n        className,\n      )}\n      {...props}\n    >\n      <span aria-hidden=\"true\" className=\"ds-well flex size-11 items-center justify-center [&_svg]:size-5\">\n        {icon}\n      </span>\n      <div className=\"flex max-w-sm flex-col gap-1.5\">\n        <h3 className=\"ds-text font-semibold text-foreground\">{title}</h3>\n        <p className=\"ds-small text-muted-foreground\">{description}</p>\n      </div>\n      {actions && <div className=\"flex flex-wrap items-center justify-center gap-2\">{actions}</div>}\n    </div>\n  );\n}\n\nexport function EmptyStates01({ className, ...props }: React.ComponentProps<\"div\">) {\n  return (\n    <div className={cn(\"@container/empty w-full\", className)} {...props}>\n      <div className=\"grid gap-4 @3xl/empty:grid-cols-3\">\n        <EmptyState\n          icon={<FolderPlus />}\n          title=\"No projects yet\"\n          description=\"Projects hold your invoices, customers and reports. Start with one; you can import the rest later.\"\n          actions={\n            <>\n              <Button size=\"sm\">New project</Button>\n              <Button size=\"sm\" variant=\"ghost\" asChild>\n                <a href=\"#\">Import CSV</a>\n              </Button>\n            </>\n          }\n        />\n        <EmptyState\n          icon={<SearchX />}\n          title=\"Nothing matches “harbour”\"\n          description=\"Check the spelling, or search every workspace instead of just this one.\"\n          live\n          actions={\n            <Button size=\"sm\" variant=\"outline\">\n              Clear search\n            </Button>\n          }\n        />\n        <EmptyState\n          icon={<ServerCrash />}\n          title=\"Invoices did not load\"\n          description=\"Our server took too long to answer. Nothing was lost; trying again usually works.\"\n          live\n          actions={\n            <Button size=\"sm\" variant=\"outline\">\n              <RefreshCw />\n              Try again\n            </Button>\n          }\n        />\n      </div>\n    </div>\n  );\n}\n",
      "type": "registry:component",
      "target": "components/satori-ui/blocks/empty-state-01.tsx"
    }
  ],
  "type": "registry:block"
}