PACKAGE · TOAST & NOTIFICATION

notistack

Highly customizable notification snackbars (toasts) that can be stacked on top of each other

WEEKLY DOWNLOADS 2.8M
STARS 4.1K
FORKS 291
OPEN ISSUES 67
GZIP SIZE 13.0 kB
UNPACKED SIZE 459.3 kB
DEPENDENCIES 5
LAST UPDATED 1y ago
DOWNLOAD TRENDS

notistack downloads · last 12 months

Download trends for notistack1 download series from Nov 2025 to Oct 2026. Use left and right arrow keys to inspect monthly values.02.3M4.6M6.9M9.2MNov 2025FebMayAugOct 2026
notistack
ABOUT NOTISTACK

notistack adds stackable notification snackbars to React applications, presenting brief messages without requiring users to leave the current screen. It addresses the common UI problem of handling several transient notifications at once, with controls for how they appear and how many remain visible.

Its design centers on Material Design-style snackbars and customization, making it relevant to teams building React interfaces that use Material UI conventions. The package is focused on notification presentation rather than application state management or a complete alerting workflow, so applications remain responsible for deciding when messages should be shown and what they contain.

The main workflow is to add a provider to the React component tree and use the package’s notification APIs from components to enqueue messages. Options such as message variants, display duration, position, and a limit on simultaneously visible snackbars let an application shape the queue and presentation; stacking is the defining behavior when notifications overlap in time.

notistack fits React front ends that need consistent feedback for actions such as saving data, reporting errors, or completing background work. Its topics include JavaScript, Material Design, notifications, Redux, and toast interfaces, but the supplied package description does not establish a requirement to use Redux or any particular application architecture.

The listed gzip bundle size is 13.0 kB, while the unpacked package size is 459.3 kB; these figures describe different distribution measures and should be considered separately when assessing an application’s size budget. Version 3.0.2 is MIT-licensed, with 608.3K weekly downloads and 4.1K GitHub stars, indicating an established project, though the supplied data also lists 67 open issues and a last-updated date of 2026-03-31.

A snackbar is transient UI, so it is not a substitute for durable error details, required confirmations, or messages users must be able to revisit. Stacking also calls for restraint: set an appropriate visible limit and avoid sending repetitive notifications that can obscure application content.

WHEN TO USE
  • When React components need to enqueue brief success, error, or informational messages without navigating away; use notistack’s provider and notification API.
  • When several events can produce notifications close together; use the stackable snackbar behavior and configure a limit on simultaneously visible messages.
  • When teams want a shared notification mechanism across a React component tree; place the provider at a suitable application boundary and enqueue messages from relevant components.
  • When notification placement should follow a consistent interface convention; configure snackbar position rather than implementing separate toast positioning.
  • When messages need different visual treatments; use message variants to distinguish outcomes such as success and error.
  • When transient feedback should disappear automatically after a chosen interval; configure the display duration for each notification or the shared defaults.
  • When building a Material Design-style React interface that needs toast notifications; use notistack’s snackbar presentation as the common feedback pattern.
WHEN NOT TO USE
  • If users must retain and revisit alerts, do not rely on transient snackbars; store notifications in a persistent inbox, activity list, or other durable UI.
  • If an action requires an explicit user decision, use a dialog or confirmation interface rather than a snackbar that may disappear.
  • If the project does not use React, notistack’s React component and provider pattern will not fit; choose a notification mechanism designed for the application’s framework.
  • If the interface needs only inline field validation tied to specific inputs, render validation messages beside those fields instead of routing them through a global snackbar queue.
  • If notifications must remain visible until acknowledged, do not depend on ordinary timed snackbar behavior; use a persistent alert component with explicit dismissal controls.
  • If a page cannot afford transient overlays covering content, present status inline or in a dedicated page region instead of stacking snackbars.
  • If the application already has a notification system that meets its presentation and queue requirements, avoid adding a second snackbar provider; extend the existing system to prevent duplicated notification behavior.

CORRECTIONS

Spot wrong data here?

A short note helps us fix it.

Anonymous · No account · No email back

COMPARISONS 3
notistack vs react-hot-toast ★ 11.0K · 5.0M/wk notistack vs sonner ★ 13.3K · 59.6M/wk notistack vs react-toastify ★ 13.4K · 5.3M/wk