Getting Started

Use search to jump between sections.

Install

Svileo is a tiny dependency. Install it once, then add a single <Toaster /> near the root of your app.

install
pnpm add svileo

Add <Toaster />

Import the base stylesheet once at your app root, then render the component.

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

// e.g. in a layout file
<Toaster />

Show toasts

Call any method from anywhere in your app to trigger a toast.

usage
import { svileo } from 'svileo';

svileo.success({ title: 'Saved!' });
svileo.error({
  title: 'Something went wrong',
  description: 'Please try again.'
});