Dialog

stable llms.txt

Modal dialog for important user interactions that captures focus and requires user action.

Installation

bash
ts

Preset Configuration

Customize the appearance using presets

Examples

Explore different variations and use cases

Basic Dialog

Modal dialog with a trigger button — no manual open state needed.

Destructive Action

Confirmation dialog for irreversible actions.

API Reference

Accessibility

  • Focus trapped within dialog
  • Escape key to close
  • Proper ARIA attributes (role="dialog", aria-modal)
  • Returns focus to trigger on close
  • Screen reader announcements
  • Keyboard navigation support

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

Built with Svelte 5 · Runes · TailwindCSS