Installation

Use search to jump between sections.

Install

install
pnpm add svileo

Add <Toaster /> once

Place it near the root of your app so all routes can trigger toasts.

toaster
import { Toaster } from 'svileo';
import 'svileo/styles.css';

// in a layout file
<Toaster />

Optional global defaults

You can pass default options to every toast via the `options` prop.

defaults
<Toaster
  position="top-right"
  options={{ duration: 4500 }}
/>