Alert

An inline message with an icon and accent color variant.

Install

npx shadcn add @clearly/alert

Preview

Usage

import { Alert } from "@/components/ui/alert"

<Alert />

Every Clearly component also accepts glass (subtle·medium·strong), specular and className.

Props

PropTypeDefaultDescription
variant"default" | "destructive""default"Border color and text tint.
glass"Subtle" | "Medium" | "Strong""Medium"Glass depth of the alert surface.
specularbooleantrueDirectional specular highlight.
radiusnumber16Corner radius in px.
raisedbooleanfalseUse the raised glass-bg-2 background.