Sonner
An opinionated toast component for Svelte.
Installation
pnpm add @heyramzi/uiKeyboard 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
SonnerPropsfromsvelte-sonner
| Prop | Type | Default |
|---|---|---|
...rest | Every prop of SonnerProps from svelte-sonner | |