Skip to content

Feedback indicators

Toaster

The Radix toast host. Renders whatever toasts it is given.
Available
Needs mock props

Examples

Rendered live from the maintained Storybook story. Lantern stores only the story id and embeds Storybook rather than duplicating the component or its demo.

Toaster

Rendered live from Storybook

Storybook must be running for this to load — bun run start:storybook from the monorepo root, or set NEXT_PUBLIC_STORYBOOK_URL to a deployed instance.

Props

The component's public API, read from its TypeScript source. Descriptions come from TSDoc on the prop, so this table cannot drift from the component.

PropTypeDefaultDescription
toastsToasterToast[][]Toasts to render. Supplied by the host app's toast store.
viewportClassNamestring—Escape hatch for repositioning the viewport (used by stories to stage it inline).

Reference

Transcribed from the component audit. If this disagrees with the source, the source is right.

Source
src/components/ui/toaster.tsx
Portability
Needs its app dependencies replaced by props before it renders in isolation.
Notes
Takes a toasts array instead of reading the useToast singleton — that store caps at one and never auto-removes, and is deliberately not promoted.