← ui-lab

Toast

A transient notification. Pressing the trigger shows a message in a polite live region (so it is announced without moving focus); it auto-dismisses after a few seconds and can also be dismissed manually. The conformance suite verifies the timed dismissal with a controlled clock, so it is deterministic rather than waiting in real time.

Preview

Installation

npx shadcn@latest add https://ui.publictheta.com/r/toast.json

Conformance

This component conforms to the @publictheta/ui-spec toast specification. Run the suite against any implementation with pnpm conformance.