Alert

stable llms.txt

Contextual feedback component for notifications, errors, and warnings with icons and action buttons.

Installation

bash
ts

Preset Configuration

Customize the appearance using presets

Examples

Explore different variations and use cases

Basic Alert

Simple alert with icon and title

Alert Variants

Different alert styles for various contexts

Dismissible Alert

Alert with close button

Alert with Actions

Alert with action buttons

API Reference

Accessibility

  • Uses appropriate ARIA role attributes
  • Semantic HTML structure with proper heading hierarchy
  • Sufficient color contrast ratios for all variants
  • Keyboard accessible dismiss button with focus indicators
  • Screen reader announcements for alert content
  • Support for assistive technologies

© 2026 Svelte Atoms. Open source under the MIT license.

Built with Svelte 5 · Runes · TailwindCSS