{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "lib-notice",
  "title": "Notice banner",
  "description": "A titled, toned banner (info, warning or success) used for status and recovery messages across the blocks.",
  "files": [
    {
      "path": "lib/notice.tsx",
      "content": "import type { ReactNode } from \"react\";\n\n/**\n * A banner for a page-level state or outcome: informational by default, a\n * warning that interrupts (announced as an alert), or a success. Blocks\n * cannot reach the app's own primitives, so this is the block-side home for\n * the same \"notice notice-<tone>\" markup the rest of the page uses, kept\n * identical so a block's banner looks and behaves like everything around it.\n */\nexport function Notice({\n  title,\n  children,\n  tone = \"info\",\n}: {\n  title?: string;\n  children: ReactNode;\n  tone?: \"info\" | \"warning\" | \"success\";\n}) {\n  return (\n    <div\n      className={`notice notice-${tone}`}\n      role={tone === \"warning\" ? \"alert\" : \"status\"}\n    >\n      {title && <h2>{title}</h2>}\n      {children}\n    </div>\n  );\n}\n",
      "type": "registry:lib",
      "target": "@lib/notice.tsx"
    }
  ],
  "type": "registry:lib"
}