Alerts & toasts

Components

Component

In-page alerts for info, success, warning and error messages, with a title, body, optional action buttons (InlineAlertAction) and an optional dismiss button. Errors and warnings use role="alert", info and success use role="status", and the role can be overridden for messages present on page load. Tinted for light and dark mode.

Alerts & toasts · Chomodo Studio 0 likes 0 installs
Component

A ToastProvider and useToast hook for stacked notifications. Toasts collapse into a deck and expand on hover or focus, auto-dismiss with timers that pause while hovered, focused or in a hidden tab, and can be updated in place (loading to success). Five variants plus default, optional action button, six positions, a limit on open toasts, and polite or assertive live-region announcements.

Alerts & toasts · Chomodo Studio 0 likes 0 installs