# Alert (@limerdev/zest) A message in the page: `` (`variant`: `default`, `info`, `success`, `warning`, `error`) holds an optional icon first, an `Alert.Title` and an `Alert.Description`. The text stays readable on a tint of the status colour; the icon takes the colour. `warning` and `error` are `role="alert"`, announced when they appear; the others `role="status"`. - Category: Feedback - Import: `import { Alert, alertVariants } from '@limerdev/zest'` - Exports: `Alert.Root`, `Alert.Title`, `Alert.Description`, `alertVariants` - Use for: A message about the page or a form that stays until the situation changes: a failed save, an overdue payment, a read-only record. - Don't: A passing confirmation ("Saved"): use a toast. A question that needs an answer: use `AlertDialog`. A field's error: use `Field.Error`. ```svelte ``` Props of `Alert.Root`: - `variant` (`"error" | "default" | "info" | "success" | "warning"`, default `'default'`): The kind of message, which sets its colour and its role (`alert` for `warning` and `error`, `status` for the rest). Example: Variants An icon, a title and a description, in each variant. ```svelte
```