{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "alert",
  "title": "Alert",
  "description": "Inline Astro feedback with message, action, and semantic status styles.",
  "dependencies": [
    "class-variance-authority",
    "cn"
  ],
  "registryDependencies": [],
  "files": [
    {
      "path": "packages/ui/src/components/ui/alert/alert-variants.ts",
      "content": "import { cva, type VariantProps } from 'class-variance-authority'\n\nexport type AlertVariants = VariantProps<typeof alertVariants>\n\nexport const alertVariants = cva(\"relative grid w-full items-start gap-x-2 gap-y-0.5 rounded-xl border px-3.5 py-3 text-card-foreground text-sm has-[>svg]:has-data-[slot=alert-action]:grid-cols-[calc(var(--spacing)*4)_1fr_auto] has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-data-[slot=alert-action]:grid-cols-[1fr_auto] has-[>svg]:gap-x-2 [&>svg]:h-lh [&>svg]:w-4 group/alert\", {\n    defaultVariants: {\n        variant: 'default',\n    },\n    variants: {\n        variant: {\n            destructive: \"border-destructive/32 bg-destructive/4 [&>svg]:text-destructive\",\n            default: \"bg-transparent dark:bg-input/32 [&>svg]:text-muted-foreground\",\n            error: 'border-destructive/32 bg-destructive/4 [&>svg]:text-destructive',\n            info: 'border-info/32 bg-info/4 [&>svg]:text-info',\n            success: 'border-success/32 bg-success/4 [&>svg]:text-success',\n            warning: 'border-warning/32 bg-warning/4 [&>svg]:text-warning',\n        },\n    },\n})\n",
      "type": "registry:file",
      "target": "~/src/components/ui/alert/alert-variants.ts"
    },
    {
      "path": "packages/ui/src/components/ui/alert/alert-action.astro",
      "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"cn\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n  data-slot=\"alert-action\"\n  class={cn(\"flex gap-1 max-sm:col-start-2 max-sm:mt-2 sm:row-start-1 sm:row-end-3 sm:self-center sm:[[data-slot=alert-description]~&]:col-start-2 sm:[[data-slot=alert-title]~&]:col-start-2 sm:[svg~&]:col-start-2 sm:[svg~[data-slot=alert-description]~&]:col-start-3 sm:[svg~[data-slot=alert-title]~&]:col-start-3\", className)}\n  {...props}\n>\n  <slot />\n</div>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/alert/alert-action.astro"
    },
    {
      "path": "packages/ui/src/components/ui/alert/alert-description.astro",
      "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"cn\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div\n  data-slot=\"alert-description\"\n  class={cn(\"flex flex-col gap-2.5 text-muted-foreground [svg~&]:col-start-2\", className)}\n  {...props}\n>\n  <slot />\n</div>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/alert/alert-description.astro"
    },
    {
      "path": "packages/ui/src/components/ui/alert/alert-title.astro",
      "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\n\nimport { cn } from \"cn\"\n\ntype Props = HTMLAttributes<\"div\">\n\nconst { class: className, ...props } = Astro.props\n---\n\n<div data-slot=\"alert-title\" class={cn(\"font-medium [svg~&]:col-start-2\", className)} {...props}>\n  <slot />\n</div>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/alert/alert-title.astro"
    },
    {
      "path": "packages/ui/src/components/ui/alert/alert.astro",
      "content": "---\nimport type { HTMLAttributes } from \"astro/types\"\nimport { cn } from \"cn\"\n\nimport type { AlertVariants } from \"./alert-variants\"\nimport { alertVariants } from \"./alert-variants\"\n\ntype Props = AlertVariants & HTMLAttributes<\"div\">\n\nconst { class: className, variant, ...props } = Astro.props\n---\n\n<div\n  data-slot=\"alert\"\n  data-variant={variant ?? \"default\"}\n  role=\"alert\"\n  class={cn(alertVariants({ variant }), className)}\n  {...props}\n>\n  <slot />\n</div>\n",
      "type": "registry:file",
      "target": "~/src/components/ui/alert/alert.astro"
    },
    {
      "path": "packages/ui/src/components/ui/alert/index.ts",
      "content": "export { default as Alert } from \"./alert.astro\"\nexport { default as AlertAction } from \"./alert-action.astro\"\nexport { default as AlertTitle } from \"./alert-title.astro\"\nexport { default as AlertDescription } from \"./alert-description.astro\"\n",
      "type": "registry:file",
      "target": "~/src/components/ui/alert/index.ts"
    }
  ],
  "meta": {
    "framework": "astro",
    "source": "@gnostic/ui",
    "testedDependencies": {
      "class-variance-authority": "^0.7.1",
      "cn": "0.5.2"
    }
  },
  "docs": "https://ui.gnosticai.com/components/alert",
  "categories": [
    "ui"
  ],
  "type": "registry:ui"
}
