Accessibility
Snackbar from @prepared911/ui wraps the Sonner toast library. The primitive handles live-region announcements, dismissal, and action slots; your job is to choose the right severity, keep messages short, and respect user time with appropriate durations.
role="status" for info/success and escalates to role="alert" for errors so screen readers announce them correctly.Error only for failures, Warning for recoverable issues, Success for confirmations, Info for neutral updates. Severity drives the live-region role.role="status" or role="alert" per severity.onClick-only spans.target="_blank" + rel="noopener" and announce "opens in new window" when possible.prefers-reduced-motion: reduce by shortening or removing slide-in animation.Dialog or inline confirmation instead.