Skip to content

Toast Stack

Notifications stacked like cards: they fan out on hover or focus, pause while you read them, close on their own and are announced with aria-live.

Plan
Free · MIT
Dependencies
React only
Props
12 (9 adjustable)

Free forever

MIT license, for personal and commercial projects. See installation

Hover over the stack to fan it out.

Changes saved

Version 2.4 is now live.

New comment

Ana replied in Product design.

Storage at 90%

Free up space to keep uploading files.

Made with Furin: Pill Nav · Metal Button · Copy Morph

Props

PropTypeDefaultDescription
refRef<ToastStackHandle>""Ref with push, dismiss and clear to fire notifications from your code.
samplesToastData[]"5 sample notices"Sample notifications fired by the button and by autoplay (the first three are the starting ones).
defaultToastsToastData[]"3 sample notices"Notifications already present on mount.
positionstring"bottom-right"Corner where they stack.
durationnumber5000Default milliseconds before closing (0 = they don't close).
maxnumber5Maximum number of notifications at once.
fixedbooleanfalseAnchors to the window instead of its container.
triggerbooleanfalseShows a button that fires sample notifications.
autoplaynumber0Seconds between automatic sample notifications (0 = off).
labelstring"Notifications"Accessible label for the region.
triggerLabelstring"Show notification"Text of the sample button (with trigger).
triggerHintstring"Hover over the stack to fan it out."Hint text under the sample button (with trigger).

Installation

Install it

1Install the package

npm i furin-ui

2Import it

import { ToastStack } from "furin-ui";

Also with pnpm add furin-ui, yarn add furin-ui or bun add furin-ui. Each component ships its own CSS and imports it for you.

Dependencies

React
18 or later
Other libraries
none
License
MIT

Each file ships its own CSS: there's nothing else to install.

Keep exploring

  • An accessible ⌘K dialog with fuzzy search, match highlighting, groups and a spring selection that glides between rows. Arrow keys, Enter and Escape.

    Navigation

  • A theme switch (role switch) where the sun morphs into a moon, the clouds sink and the stars come out, all on springs.

    Navigation

  • Dock

    Free

    A bar of icons that magnify under the cursor, on glass.

    Navigation