Back to Component Browser
Alert
Quartzlib/quartz/components/Alert/index.ts
Preview
Success: Changes saved successfully.
Warning: Your session will expire soon.
Error: Failed to save changes.
Attention: A new version is available.
Import
import { Alert } from '@/lib/quartz';Props (3)
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| variant | enum | required | — | The style of the `<Alert>`. Changes only visual appearance. |
| role | enum | optional | — | Determines how screen readers should be alerted when this content appears or is modified.`.... |
| description | ReactNode | optional | — | The contents of the `<Alert>`. Generally, include actionable text for how to handle the alert, and why the alert is popping up.... |
Usage
Not used in any projects yet.