Skip to content
Feedback & Data

NotificationStack

Notifications pile into a deck with the newest on top. Open it and the cards fan out into a list; dismiss one and the rest close the gap. Screen readers hear the new count.

Download
  • React
  • Tailwind CSS v4
  • motion

Props

NameTypeDefaultWhat it does
items{ id, title, description?, time? }[]โ€”Newest first.
onDismiss(id) => voidโ€”Called when one is dismissed. Remove it from items there.
titlestring"Notifications"Heading on the toggle.
rowHeightnumber68Height of one card in pixels. Long text is cut to fit.
maxHeightnumber320Tallest the open list gets before it scrolls.
classNamestringdark cardReplaces the card look. Keep it solid so cards behind stay hidden.