GitHubnpm

Accent theme

Base radius

GitHubnpm

Accent theme

Base radius

Colour scheme

Docs menu

Guides


Primitives
Forms
Layout
Feedback
Overlays
Navigation
Data Display
AI

Toast

An imperative API, like Sonner: call toast(...) from anywhere in your code, no context provider needed at the call site. Mount <ToastViewport /> once, near the root of your app, to actually render them. Every toast is its own live region, role="alert" for danger/warning, role="status" for default/success, the same reasoning as Callout.

Playground

Toggle every adjustable prop and watch the component — and the code — update live.

Unstyled

Same component — Kernel look stripped. See Platforms.

variant
Usage
<Button onClick={() => toast("Changes published")}>Publish</Button>
<ToastViewport />

API

Props for Toast.
CallNotes
toast(title, options?)Default variant
toast.success(title, options?)
toast.warning(title, options?)
toast.danger(title, options?)
toast.dismiss(id)Dismiss a specific toast early

options: { description?, duration? }. duration defaults to 4000ms; pass 0 to require a manual dismiss.