# Alert

Use alerts for status messages, warnings, and important callouts.

```svelte
<script lang="ts">
  import CheckCircle2Icon from "@lucide/svelte/icons/check-circle-2";
  import * as Alert from "~/components/alert";
</script>

<Alert.Root>
  <CheckCircle2Icon />
  <Alert.Title>Success! Your changes have been saved</Alert.Title>
  <Alert.Description>This is an alert with icon, title and description.</Alert.Description>
</Alert.Root>
```

Pass `variant="destructive"` for error-style callouts. Compose an icon as a direct child of `Alert.Root` for a leading indicator, and use `Alert.Action` for a corner action.