{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "callout",
  "title": "Callout",
  "description": "A boxed note for documentation and settings pages, with a kind label, title, body and optional action.",
  "dependencies": [
    "lucide-react"
  ],
  "files": [
    {
      "path": "registry/tealmac/callout.tsx",
      "content": "// Adapted from Ballmac UI (https://github.com/vamsiy78/ballmac-ui), MIT License, Copyright (c) 2026 Ballmac.\nimport * as React from \"react\"\nimport { BookOpen, Lightbulb, TriangleAlert } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\ntype CalloutProps = Omit<React.ComponentProps<\"aside\">, \"title\"> & {\n  /** Headline for the guidance. */\n  title: string\n  /** Guidance type, represented by both icon and text. */\n  kind?: \"tip\" | \"note\" | \"caution\"\n  /** Optional action link or button. */\n  action?: React.ReactNode\n}\n\nfunction Callout({\n  className,\n  title,\n  kind = \"tip\",\n  action,\n  children,\n  ...props\n}: CalloutProps) {\n  const Icon =\n    kind === \"tip\" ? Lightbulb : kind === \"caution\" ? TriangleAlert : BookOpen\n  return (\n    <aside\n      data-slot=\"callout\"\n      aria-label={title}\n      className={cn(\n        \"bg-card border-border relative w-full min-w-0 overflow-hidden rounded-xl border p-5 shadow-sm\",\n        className\n      )}\n      {...props}\n    >\n      <span\n        aria-hidden=\"true\"\n        className={cn(\n          \"absolute inset-y-0 start-0 w-1\",\n          kind === \"tip\" && \"bg-primary\",\n          kind === \"note\" && \"bg-chart-3\",\n          kind === \"caution\" && \"bg-chart-4\"\n        )}\n      />\n      <div className=\"flex items-start gap-3\">\n        <span\n          aria-hidden=\"true\"\n          className=\"bg-muted text-foreground flex size-9 shrink-0 items-center justify-center rounded-lg\"\n        >\n          <Icon className=\"size-4\" />\n        </span>\n        <div className=\"min-w-0 flex-1\">\n          <p className=\"text-muted-foreground text-xs font-medium tracking-wide uppercase\">\n            {kind}\n          </p>\n          <h3 className=\"text-foreground mt-0.5 text-sm font-semibold\">\n            {title}\n          </h3>\n          <div\n            data-slot=\"callout-content\"\n            className=\"text-muted-foreground mt-1.5 text-sm leading-relaxed\"\n          >\n            {children}\n          </div>\n          {action && (\n            <div data-slot=\"callout-action\" className=\"mt-3\">\n              {action}\n            </div>\n          )}\n        </div>\n      </div>\n    </aside>\n  )\n}\n\nexport { Callout, type CalloutProps }\n",
      "type": "registry:ui"
    }
  ],
  "type": "registry:ui"
}