This component no longer exists. It was in neobrutal-ui’s manifest when we first indexed it and is not there now — the registry served its inventory on 2026-08-06 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
neobrutal-ui/alertRemovedComponent
neobrutal-ui publishes no description for this item.
Live preview
live · rendered by the registry
Rendered by neobrutal-ui on their own page — this is the component running, not a screenshot of it.Install it
npx shadcn@latest add https://neobrutal-ui.andongmin.com/r/alert.jsonSource
1import { cva, type VariantProps } from "class-variance-authority";23import * as React from "react";45import { cn } from "@/lib/utils";67const alertVariants = cva(8 "relative w-full rounded-base border-2 border-border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current shadow-shadow",9 {10 variants: {11 variant: {12 default: "bg-main text-main-foreground",13 destructive: "bg-black text-white",14 },15 },16 defaultVariants: {17 variant: "default",18 },19 },20);2122function Alert({23 className,24 variant,25 ...props26}: React.ComponentProps<"div"> & VariantProps<typeof alertVariants>) {27 return (28 <div29 data-slot="alert"30 role="alert"31 className={cn(alertVariants({ variant }), className)}32 {...props}33 />34 );35}3637function AlertTitle({ className, ...props }: React.ComponentProps<"div">) {38 return (39 <div40 data-slot="alert-title"41 className={cn("col-start-2 line-clamp-1 min-h-4 font-heading tracking-tight", className)}42 {...props}43 />44 );45}4647function AlertDescription({ className, ...props }: React.ComponentProps<"div">) {48 return (49 <div50 data-slot="alert-description"51 className={cn(52 "col-start-2 grid justify-items-start gap-1 text-sm font-base [&_p]:leading-relaxed",53 className,54 )}55 {...props}56 />57 );58}5960export { Alert, AlertTitle, AlertDescription };
