This component no longer exists. It was in shadcn/ui’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-13 and this item was not on it. The install command below will fail. It is kept here because a tutorial somewhere still tells people to run it.
alert
agileflow-projectquestorg/alertRemovedComponent
shadcn/ui publishes no description for this item.
Install it
npx shadcn@latest add https://raw.githubusercontent.com/projectquestorg/AgileFlow/main/apps/docs/public/r/styles/radix-nova/alert.jsonSource
1import * as React from "react"2import { cva, type VariantProps } from "class-variance-authority"34import { cn } from "@/registry/bases/radix/lib/utils"56const alertVariants = cva("grid gap-0.5 rounded-lg border px-2.5 py-2 text-left text-sm has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-2 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-4 w-full relative group/alert", {7 variants: {8 variant: {9 default: "bg-card text-card-foreground",10 destructive: "text-destructive bg-card *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current",11 },12 },13 defaultVariants: {14 variant: "default",15 },16})1718function Alert({19 className,20 variant,21 ...props22}: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>) {23 return (24 <div25 data-slot="alert"26 role="alert"27 className={cn(alertVariants({ variant }), className)}28 {...props}29 />30 )31}3233function AlertTitle({ className, ...props }: React.ComponentProps<"div">) {34 return (35 <div36 data-slot="alert-title"37 className={cn(38 "font-medium group-has-[>svg]/alert:col-start-2 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3",39 className40 )}41 {...props}42 />43 )44}4546function AlertDescription({47 className,48 ...props49}: React.ComponentProps<"div">) {50 return (51 <div52 data-slot="alert-description"53 className={cn(54 "text-muted-foreground text-sm text-balance md:text-pretty [&_p:not(:last-child)]:mb-4 [&_a]:hover:text-foreground [&_a]:underline [&_a]:underline-offset-3",55 className56 )}57 {...props}58 />59 )60}6162function AlertAction({ className, ...props }: React.ComponentProps<"div">) {63 return (64 <div65 data-slot="alert-action"66 className={cn("absolute top-2 right-2", className)}67 {...props}68 />69 )70}7172export { Alert, AlertTitle, AlertDescription, AlertAction }
