Custom Shadcn Alert for React and Tailwind CSS. Displays a callout for user attention, such as a success message, warning, or error.
Browse 20 production-ready Shadcn Alert components for success, warning, destructive, and inline actions. Alerts use Base UI primitives and composable components, and stay fully compatible with Shadcn Create so radius, color, and typography match your configured theme.
Browse all 20 Shadcn Alert components for copy-ready layouts, dashboards, and forms built with Tailwind CSS in the ReUI library.
import {
Alert,
AlertAction,
AlertDescription,
AlertTitle,
} from "@/components/reui/alert"<Alert>
<ShieldCheckIcon />
<AlertTitle>Security Update</AlertTitle>
<AlertDescription>Update your password and enable 2FA.</AlertDescription>
<AlertAction>
<Button variant="outline" size="xs">
Dismiss
</Button>
<Button size="xs">Update</Button>
</AlertAction>
</Alert>This component follows the same API design as the Alert Component from shadcn/ui.
The key difference is that it uses extended color tokens such as --success, --info, --warning and --invert
for alert variants instead of utility classes.
This approach enables consistent, reusable state variants across the project without relying on custom Tailwind color utilities.
<Alert variant="success">
<AlertTitle>Success</AlertTitle>
<AlertDescription>This is a success alert</AlertDescription>
</Alert>import {
Alert,
AlertDescription,
AlertTitle,
} from "@/components/reui/alert"
export function Pattern() {
return (
<Alert>
<AlertTitle>Alert!</AlertTitle>
<AlertDescription>
This is an alert with a title and description.
</AlertDescription>
</Alert>
)
}