Snackbar API
Headless compound component for toast and snackbar notifications. Pairs with
useNotifications for queue-driven stacks with auto-dismiss and pause on hover.Related
Explore these related pages for additional context and usage patterns.
| Page | Category |
|---|---|
| Snackbar | Semantic |
| useNotifications | Plugins |
| createQueue | Registration |
Snackbar.Root
Props
Events
dismiss
[id: ID]Slots
default
SnackbarRootSlotPropsSnackbar.Announcer
Props
namespace
string | undefinedNamespace for context injection from parent Snackbar.Portal.
Default: "v0:notifications"
Snackbar.Close
Props
Slots
default
SnackbarCloseSlotPropsSnackbar.Portal
Props
announcer
boolean | undefinedAuto-render the Snackbar.Announcer live-region pair. Set false to omit it or place <Snackbar.Announcer> yourself.
Default: true
teleport
false | "top-layer" | (string & {}) | undefinedTeleport target. 'top-layer' mounts into the topmost open modal; false renders inline.
Default: "top-layer"
Slots
default
SnackbarPortalSlotPropsSnackbar.Queue
Props
Slots
default
SnackbarQueueSlotProps