Skip to content
h v3.13.3
Search the docs
Find a component, section or page.

Sonner

An opinionated toast component for Svelte.

Installation

pnpm add @heyramzi/ui

Keyboard and accessibility

Key Does
Alt T Moves focus to the toasts and spreads the stack open.
Esc With focus in the toasts, folds the stack back.
  • Toasts sit in a polite live region named "Notifications", so each new one is read out.
  • The type icons are hidden from screen readers. Say success or failure in the message itself.

API reference

...rest
Every prop of SonnerProps from svelte-sonner
Prop Type Default
...rest Every prop of SonnerProps from svelte-sonner