Notification Stack
FreeNewSampleToasts collapse into a tidy deck and expand on hover or focus. Timers pause while someone is reading.
- feedback
- toast
- notifications
Customize
These controls show a few ways to adapt it. The source is fully editable.
Install
Not published yetnpx shadcn@latest add @uicoolkit/notification-stackInstall commands go live when this item ships to the registry.
Dependencies
- motion
Use with an agent
Copy a prompt with this component, your current preview settings and links to its docs.
Add the UICoolKit "Notification Stack" component (notification-stack) to this project. Docs: https://uicoolkit.com/components/notification-stack Agent docs: https://uicoolkit.com/components/notification-stack.md Install: npx shadcn@latest add @uicoolkit/notification-stack Preview settings to match: accent Ember, radius 12px, motion on. Use the documented props and className hooks rather than editing internals, and wire it to this app's real state. (Note: this is a sample item from the UICoolKit website shell and is not published yet.)
const { notify } = useNotifications();
notify({ title: "Invite sent", tone: "success" });| Prop | Type | Default |
|---|---|---|
positionEdge the stack anchors to. | "top" | "bottom" | "bottom" |
durationAuto-dismiss delay in ms; paused on hover or focus. | number | 5000 |
visibleToasts shown before the rest collapse. | number | 3 |
classNameMerged onto the root after defaults, so consumer styles win. | string | — |
motionDisable animation or tune duration, easing and spring values. Reduced motion is honored by default. | boolean | MotionOptions | true |
Every part accepts className, and consumer classes are merged last so they win. Control state from your own data, replace any content, and tune or disable motion.
<NotificationStack
className="rounded-none border-2 border-black bg-yellow-300 font-mono"
motion={{ duration: 0.2 }}
/>- Announced through a polite region; errors use assertive.
- Hover or focus pauses dismissal (WCAG 2.2.1).
An original UICoolKit component, designed and built from scratch.
Free items are MIT licensed. Pro items are licensed per purchase.