show
(opts: SvileoOptions) => stringShow a toast with an explicit `type` (success/loading/error/warning/info/action).
Use search to jump between sections.
`svileo` exposes a small set of helpers to create, update, and dismiss toasts. Every toast method returns an ID you can dismiss later.
import { svileo } from 'svileo';
svileo.success({ title: 'Saved!' });
svileo.error({ title: 'Error', description: 'Try again.' });
(opts: SvileoOptions) => stringShow a toast with an explicit `type` (success/loading/error/warning/info/action).
(opts: SvileoOptions) => stringShow a success toast.
(opts: SvileoOptions) => stringShow an error toast.
(opts: SvileoOptions) => stringShow a warning toast.
(opts: SvileoOptions) => stringShow an info toast.
(opts: SvileoOptions) => stringShow a toast with a primary action button.
<T>(promise: Promise<T> | (() => Promise<T>), opts: SvileoPromiseOptions<T>) => Promise<T>Show `loading` while pending, then transition to `success`, `error`, or `action`.
(id: string) => voidDismiss a specific toast by ID.
(position?: SvileoPosition) => voidDismiss all toasts, optionally scoped to a position.
`'success' | 'loading' | 'error' | 'warning' | 'info' | 'action'`
`'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right'`