component
toast
Transient status toast: informational, positive, destructive; optional action; swipe/tap/timed dismissal.
toastsnackbarnotificationfeedbackstatusshadcn

On iPad
The same installed source at a regular width. It adapts its layout without a separate design.


Install
With the sweetui tool (brew install mangobyte-dev/tap/sweetui):
sweetui install toast --destination Sources/YourFeature/ComponentsInstalls in order: button 0.5.2, toast 0.1.1. Point --destination at a folder inside the consuming target's sources.
Usage
@State private var toast: RegistryToast?
CardDetail()
.registryToast($toast)
// Present a destructive toast with an undo action:
toast = RegistryToast(
title: "Message deleted",
message: "You can undo this for a few seconds.",
variant: .destructive,
action: RegistryToast.Action(label: "Undo") { restoreMessage() }
)Accessibility contract
- Variant pairs symbol with color. MUST NOT rely on color alone.
- Posts VoiceOver announcement from title+message; keeps focus.
- Title+message combine; action, close stay separate.
- Close carries Dismiss label; symbol hidden; tone via text.
- Reduce Motion: fade not slide; title shrinks; message wraps 2 lines.
Details
| Kind | component |
| Version | 0.1.1 |
| Platforms | iOS 26.0+ |
| Dependencies | button |
| Source | Registry/sources/components/RegistryToastModifier.swift |
| Xcode preview | Toast |