motionsnack

Animated React sections that already feel finished.

Copy them into Next.js or add them with one command. Plain React and Tailwind, light and dark.

New sections, once a month

One short email when something new lands. No spam.

Library

  • Sections
  • Blocks
  • Components
  • Application UI
  • Templates

Popular

  • Hero
  • Gallery
  • Testimonials
  • Stats
  • Logos
  • FAQ

Resources

  • Installation
  • All components
  • All blocks
  • All sections
  • All application UI
  • Design system
  • Changelog
  • Pricing

Company

  • About
  • Contact
  • Terms
  • Privacy

Install

npx motionsnack add <name>Step-by-step guidehello@motionsnack.dev
Kuba Šťastný@kubastastnydev

© 2026 motionsnack. All rights reserved.

TermsPrivacy

motionsnack

motionsnack
DocsSectionsTemplatesWhat's newPricing
Get lifetime access
  1. Home
  2. Docs
  3. Components
  4. Notification
  5. Toast Stack
ComponentsBlocksSectionsApplication UI
ComponentsBlocksSectionsApplication UI

Accordion

  • Spring Accordion

Alert

  • Glow Alert

Audio

  • Podcast PlayerNew
  • Voice NoteNew
  • Voice RecorderNew

Avatar

  • Avatar Stack

Badge

  • Pulse Badge

Breadcrumb

  • Slide Breadcrumb

Button

  • Chip ButtonNew
  • Glow Border Button
  • Glow ButtonNew
  • Plain ButtonNew

Calendar

  • Month Calendar

Checkbox

  • Checkbox CardsNew
  • Checkbox GroupNew
  • Chip CheckboxNew

Cropper

  • Image Cropper

Dialog

  • Spring Dialog

Dropdown

  • Command MenuNew
  • Stagger Dropdown
  • Switcher DropdownNew

File Upload

  • Drop Zone Upload

Input

  • Addon InputNew
  • Button InputNew
  • Copy InputNew
  • Date InputNew
  • Floating Label Input
  • Joined InputsNew
  • Notched Label InputNew
  • Number StepperNew
  • OTP InputNew
  • Password InputNew
  • Phone InputNew
  • Range InputNew
  • Search InputNew
  • Tag InputNew
  • Text FieldNew

Loader

  • Curtain LoaderNew
  • Greeting LoaderNew
  • Line LoaderNew
  • Meter LoaderNew
  • Split LoaderNew

Navigation Menu

  • Mobile Tab BarNew

Notification

  • Notification BellNew
  • Toast Stack

Pagination

  • Sliding Pagination

Popover

  • Spring Popover

Radio

  • Card Radio Group
  • Payment MethodNew
  • Radio GroupNew
  • Rating RadioNew

Select

  • ComboboxNew
  • Glide Select
  • Multi SelectNew
  • Rich SelectNew
  • Select FieldNew
  • Tree SelectNew

Sidebar

  • Icon RailNew

Slider

  • Glow Slider

Stepper

  • Progress Stepper

Switch

  • Billing SwitchNew
  • Switch RowNew
  • Toggle SwitchNew

Table

  • Sortable Table

Tabs

  • Sliding Tabs

Textarea

  • Auto Grow Textarea

Toggle

  • Icon ToggleNew
  • Theme ToggleNew
  • Toggle GroupNew

Tooltip

  • Follow Tooltip

Notification

Toast Stack

A stack of toasts that spring in, tuck behind each other and expand on hover.

npx motionsnack add toast-stack

Customize

Accent
ms
px
<ToastStack />

Props

18 properties

PropertyTypeDefaultDescription
toasts{ id?: string; title: string; description?: string; variant?: 'info' | 'success' | 'warning' | 'error'; action?: { label: string; href?: string } }[]4 demo messagesMessages shown by the trigger, in a loop. Errors never time out; toasts with an action stay 10000ms.
triggerReactNode-Content of the trigger button (replaces triggerLabel).
onAction(message) => void-Called with the message whose action was pressed.
hotkeystring'F8'Key that moves focus into the stack.
labels{ region?: string; dismiss?: string }'Notifications', 'Dismiss'UI strings.
onShow(message, index) => void-Called whenever the trigger shows a toast.
classNamestring''Extra classes on the component's box.
triggerLabelstring'Show notification'Text of the trigger button. An empty string hides the button.
position'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right''bottom-right'Corner (or edge centre) of the component's box the toasts stack in.
durationnumber5000Milliseconds before a plain toast dismisses itself. 0 keeps it until it is closed.
maxVisiblenumber3Most toasts visible at once; the rest wait in a queue.
initialCountnumber1Toasts shown on first render. Their countdown starts with the first press of the trigger.
showProgressbooleantrueThin line at the bottom of a toast showing the time left.
closablebooleantrueClose button on every toast.
expandOnHoverbooleantrueHovering or focusing the stack spreads the toasts out into a list.
pauseOnHoverbooleantrueCountdown waits while the stack is hovered or focused.
accentstring''Colour of the progress line. Empty keeps it monochrome.
heightnumber420Height of the component's box.

About Toast Stack

A trigger button and a stack of toasts anchored to a corner of the component's own box. Every new toast springs in from the edge while the older ones scale down and tuck behind it, so only a thin strip of each stays visible. Hovering or focusing the stack spreads the toasts out into a readable list and pauses their countdown. Each toast dismisses itself after a set time, shown by a thin progress line in the accent colour, and can be closed by hand. The demo cycles through a list of preset messages you pass in as an array. With reduced motion the toasts simply fade.

What's included

  • Spring enter, stacked scale and offset for older toasts
  • Expands into a list on hover or focus
  • Auto dismiss with a progress line that pauses on hover
  • Six positions inside the component's box
  • Messages as an array prop, cycled by the trigger
  • Close buttons, live region and focus return
  • Light and dark, reduced motion respected
Type
Animated React notification component
Library
Components · Notification
Stack
Next.js, React, Tailwind CSS
Added
2026-09-20
Install
npx motionsnack add toast-stack