Alert

A callout for drawing attention to important messages.

Installation

npx lily-svelte@latest add alert

Usage

<script lang="ts">
	import { Alert, AlertTitle, AlertDescription } from '$lib/components/ui/alert';
</script>
 
<Alert>
	<AlertTitle>Heads up!</AlertTitle>
	<AlertDescription>You can add components using the CLI.</AlertDescription>
</Alert>

Use variant="destructive" for errors. An optional <svg> as the first child renders as the leading icon.

Built by levish. The source code is available on GitHub.

Quiet by design.