{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A short confirmation toast: fixed bottom right, read out by screen readers through role status. Empty text renders nothing visible.",
  "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/notice.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// NoticeProps are the props of Notice; the values are the JSON shapes of the TypeScript props.\ntype NoticeProps struct {\n\tText any `json:\"text\"`\n}\n\n// A short confirmation toast: fixed bottom right, read out by screen readers through role status. Empty text renders nothing visible.\ntempl Notice(p NoticeProps) {\n\t{{ vText := p.Text }}\n\t@compose.Box(compose.BoxProps{BoxProps: box.BoxProps{Class: \"contents\", Attrs: uiutils.Attrs(\"role\", \"status\", \"data-slot\", \"notice\")}}) {\n\t\tif uiutils.T(vText) {\n\t\t\t@compose.Text(compose.TextProps{TextProps: text.TextProps{Class: \"fixed right-4 bottom-4 z-40 m-0 flex items-center gap-2 rounded bg-foreground p-4 text-xs font-bold text-background shadow-lg\"}}) {\n\t\t\t\t@icons.LucideIcon(icons.LucideIconProps{Name: \"circle-check\", Size: 16})\n\t\t\t\t{ uiutils.Text(vText) }\n\t\t\t}\n\t\t}\n\t}\n}\n",
      "path": "blocks/notice.templ",
      "target": "blocks/notice.templ"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "templ",
      "component"
    ]
  },
  "name": "notice",
  "registryDependencies": [
    "box",
    "kit-box",
    "kit-text",
    "lucide-icon",
    "text",
    "utils"
  ],
  "runtime": "templ",
  "title": "Notice",
  "type": "registry:component"
}
