Alert
The surface stays neutral in every variant; only the icon and its color change. Alert.Root has role="alert", so screen readers announce it when it appears.
Scheduled maintenance
Deploys are paused on Saturday from 02:00 to 04:00 UTC.
Installation
Copy the command below and run it in your terminal.
Usage
variant defaults to info. Alert.Root draws the icon; you supply the title and description.
Anatomy
Alert.Root - Provides the alert container.
Alert.Title - Renders the alert heading.
Alert.Description - Renders the alert details.
<script lang="ts"> import * as Alert from '@sivir-ui/svelte/components/alert'; </script> <div class="w-full max-w-md"> <Alert.Root> <Alert.Title>Scheduled maintenance</Alert.Title> <Alert.Description> Deploys are paused on Saturday from 02:00 to 04:00 UTC. </Alert.Description> </Alert.Root> </div>