{ "$schema": "https://blode.co/ui/schema/registry-item.json", "name": "alert", "title": "Alert", "author": "Matthew Blode", "description": "A callout that displays a short, important message to attract attention.", "files": [ { "path": "ui/alert.tsx", "content": "import { cva } from \"class-variance-authority\";\nimport type { VariantProps } from \"class-variance-authority\";\nimport type * as React from \"react\";\n\nimport { cn } from \"@/lib/utils\";\n\nconst alertVariants = cva(\n \"relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current\",\n {\n defaultVariants: {\n variant: \"default\",\n },\n variants: {\n variant: {\n default: \"bg-card text-card-foreground\",\n destructive:\n \"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current\",\n },\n },\n },\n);\n\nconst Alert = ({\n className,\n variant,\n ...props\n}: React.ComponentProps<\"div\"> & VariantProps) => (\n \n);\n\nconst AlertTitle = ({ className, ...props }: React.ComponentProps<\"div\">) => (\n \n);\n\nconst AlertDescription = ({ className, ...props }: React.ComponentProps<\"div\">) => (\n \n);\n\nexport { Alert, AlertTitle, AlertDescription };\n", "type": "registry:ui", "target": "" } ], "type": "registry:ui" }