Menu
Libraries |
Category

svelte-sonner

  • An opinionated toast component for Svelte, ported from Emil Kowalski's Sonner .
  • Provides a simple API to display various types of toast notifications (default, success, info, warning, error, action, promise-based, and custom components).
  • Supports toast updates, customization (theme, position, styling), and programmatic control (dismissal, callbacks).
  • Features include:
    • Headless mode for custom unstyled toasts
    • Tailwind CSS support
    • Custom icons
    • Close buttons
    • Rich colors for error/success states
    • Keyboard shortcuts
    • Duration control
    • Toast position and expansion options
  • Includes utility functions like toast.dismiss() and useSonner hook for managing toasts.
  • Designed for Svelte applications with framework-specific implementation.
  • MIT licensed.

sveltetoastnotifications

Comments