Docs Menu
Docs/API Reference/API Reference: toastory (Web)
Updated October 2026

API Reference: toastory (Web)

Default browser export providing ui toolkit, toast method helpers, and DOM toaster mounting engine.

The root toastory import provides the browser runtime with automated DOM mounting, gesture detection, and dialog controllers.

typescript

// Global configuration: ui.configure({ theme: 'ios-glass', mode: 'auto', position: 'top-right', duration: 4000, richColors: false, closeButton: true, });

// Toast methods: toast(message, opts); toast.success(message, opts); toast.error(message, opts); toast.warning(message, opts); toast.info(message, opts); toast.loading(message, opts); toast.promise(promise, messages); toast.custom(renderer, opts); toast.update(id, patch); toast.dismiss(id?); toast.dismissAll();

// Dialog methods: ui.confirm(opts); ui.alert(opts); ui.prompt(opts); ui.steps(stepsArray); ui.sheet(opts); ui.bottomSheet(opts); ui.loading(opts); `

Want to test these options live?

Launch the interactive playground to experiment with themes, positions, and live generators.

Open in Playground →