<cad-toast> · toast()
Toast
Show a temporary notification. Call toast() for messages, actions, loading states, and promise results.
Try notifications
Toast API
Use toast.success(), toast.info(), toast.warning(), toast.error(), or toast.neutral() for status messages.toast.loading() returns an id for toast.update(). toast.promise() follows an asynchronous result. Set actions and placement in the options, or close notifications with toast.dismiss().
React can import the same API from @caderno-ui/react/toast. No provider is required.
API reference: <cad-toast>
API reference: <cad-toast-host>
Accessibility
Informational messages use polite announcements; errors use alerts. Timers pause on hover or focus. Persistent notifications stay dismissible, with named close buttons.