{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Empty list or nothing found: a round icon, a title, a hint and an optional action.",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "// Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n// Source: packages/compose-gen/specs/parts/empty-state.json\n\npackage blocks\n\nimport (\n\t\"github.com/ui8kit/codegen/generated/templ/ui/box\"\n\t\"github.com/ui8kit/codegen/generated/templ/compose\"\n\t\"github.com/ui8kit/codegen/generated/templ/icons\"\n\t\"github.com/ui8kit/codegen/generated/templ/ui/text\"\n\tuiutils \"github.com/ui8kit/codegen/generated/templ/orgutils\"\n)\n\n// EmptyStateProps are the props of EmptyState; the values are the JSON shapes of the TypeScript props.\ntype EmptyStateProps struct {\n\tIcon any `json:\"icon\"`\n\tTitle any `json:\"title\"`\n\tText any `json:\"text\"`\n\tClass string `json:\"className\"`\n\tAction templ.Component `json:\"-\"`\n}\n\n// Empty list or nothing found: a round icon, a title, a hint and an optional action.\ntempl EmptyState(p EmptyStateProps) {\n\t{{ vIcon := uiutils.Def(p.Icon, \"inbox\") }}\n\t{{ vTitle := p.Title }}\n\t{{ vText := p.Text }}\n\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: uiutils.S(uiutils.Cnv(\"flex min-w-0 flex-col items-center gap-4 rounded bg-card px-6 py-14 text-center inset-ring inset-ring-border\", p.Class)), Attrs: uiutils.Attrs(\"role\", \"status\", \"data-slot\", \"empty-state\")}}) {\n\t\t@compose.IconBadge(compose.IconBadgeProps{Size: \"lg\", TextProps: text.TextProps{}}) {\n\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: uiutils.S(vIcon), Size: 20})\n\t\t}\n\t\t@compose.Text(compose.TextProps{TextProps: text.TextProps{Class: \"m-0 text-sm font-bold text-foreground\"}}) {\n\t\t\t{ uiutils.Text(vTitle) }\n\t\t}\n\t\tif uiutils.T(vText) {\n\t\t\t@compose.Text(compose.TextProps{TextProps: text.TextProps{Class: \"m-0 max-w-80 text-xs font-medium text-muted-foreground\"}}) {\n\t\t\t\t{ uiutils.Text(vText) }\n\t\t\t}\n\t\t}\n\t\tif p.Action != nil {\n\t\t\t@p.Action\n\t\t}\n\t}\n}\n",
      "path": "blocks/empty-state.templ",
      "target": "blocks/empty-state.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "empty-state",
  "registryDependencies": [
    "box",
    "icon-badge",
    "kit-box",
    "kit-text",
    "lucide-icon",
    "text",
    "utils"
  ],
  "runtime": "templ",
  "title": "Empty State",
  "type": "registry:component"
}
