Svelte Sonner

An opinionated toast component for Svelte.

GitHub

Installation

npm install svelte-sonner

Usage

Render the toaster in the root of your app.

Types

You can customize the type of toast you want to render, and pass an options object as the second argument.

Position

Swipe direction changes depending on the position.

Expand

You can change the amount of toasts visible through the visibleToasts prop.

Other