← All Components

Alert

Contextual feedback messages with semantic status colors and composable title/description.

Variants

Status

Props

PropTypeDescription
variant"default" | "solid"Background treatment
status"error" | "success" | "warning" | "info"Semantic color (overrides variant background)
classNamestringAdditional classes on the root element

Usage

<Alert status="error"> <Alert.Title>Error</Alert.Title> <Alert.Description>Invalid credentials.</Alert.Description> </Alert> <Alert status="success"> <Alert.Title>Account created</Alert.Title> <Alert.Description>Check your email to verify.</Alert.Description> </Alert>