import { Alert } from "@kuzenbo/core";export default function Example() { return ( <Alert variant="default"> <AlertIcon /> <Alert.Title>Heads up!</Alert.Title> <Alert.Description> You can add components to your app using the CLI. </Alert.Description> </Alert> );}
Alerts support semantic variants for different message types.
<Alert variant="danger"> <AlertIcon /> <Alert.Title>Error</Alert.Title> <Alert.Description> Your session has expired. Please log in again. </Alert.Description></Alert><Alert variant="warning"> <AlertIcon /> <Alert.Title>Warning</Alert.Title> <Alert.Description> Your trial is expiring soon. Upgrade to continue. </Alert.Description></Alert><Alert variant="success"> <AlertIcon /> <Alert.Title>Success</Alert.Title> <Alert.Description> Your changes have been saved successfully. </Alert.Description></Alert><Alert variant="info"> <AlertIcon /> <Alert.Title>Note</Alert.Title> <Alert.Description> This feature is currently in beta. </Alert.Description></Alert>
<Alert variant="default"> <AlertIcon /> <Alert.Title>Update available</Alert.Title> <Alert.Description> A new version is available. Update now to get the latest features. </Alert.Description> <Alert.Action> <Button size="xs" variant="outline">Update</Button> </Alert.Action></Alert>