shadcn.io is not affiliated with official shadcn/ui
Stacked Cards Changelog Block for React
A deck of the three latest releases of a notes app: the top card in full, the two behind it peeking out, and a Next release button that sends the top card to the back.
Installation
Overview
A stacked-cards changelog for React with Base UI, written for Heapstack, a fictional notes app. Under a centred header, a framed shell holds a deck of three cards, one on top of another. The top card shows its release in full: the version in mono, a type tag with an icon and a word, the day it shipped, a title, a sentence and two notes. The two cards behind peek out 12 pixels apiece. The Next release button sends the top card to the back and brings the next one up, a counter says which of the three is showing, and a polite status line names the new top card for assistive technology. The cards behind the top one are in the page but hidden from assistive technology and the keyboard until they come up, and all three share the height of the tallest, so nothing below the deck moves. The page's rails and top rule come from the Guides spine. It's built from Frame, Button, Badge and Guides, with CSS transitions for the entrance and the cycling, and your theme's tokens for every colour. For product pages that want the latest releases in one small, tidy place. The releases are example data, and the position in the deck is not saved.
FAQ
How do I change the releases?
Edit RELEASES at the top of the file, newest first. Each release has a version, a date as an ISO day ("2026-09-22"), a kind, a title, a summary and two notes. The deck is made for three cards: its offsets are listed in DEPTHS, so add an entry there before adding a fourth release. Dates are fixed, never computed from today.
What does Next release do, and where does focus go?
It takes the card on top to the back of the deck and brings the next one up, wrapping from the third card back to the first. The button stays where it is and keeps focus, so you can press it again, or hold Enter or Space, to go through the deck. A polite status line then says, for example, "Showing v5.1.3, Lists and pins stay put. Release 2 of 3."
Can a screen reader or the keyboard reach the cards behind?
Not until they come up. The cards behind the top one are hidden from assistive technology and can't take focus, so a reader meets one release at a time and the status line says which. Every card's text is in the page from the start.
How are the change types told apart without colour?
Each card has an outline badge with an icon and the word (New, Improved, Fixed, Security, Deprecated), so it reads in greyscale, in any theme and to a screen reader, which hears the word and skips the icon.
Related
- Pro
Release Timeline Changelog
Lists and timelinesA release timeline for an API client: a compact header with a Subscribe link, then the latest four releases on a hairline rail with dots, each with its version, date, type tags, a linked title and its notes, and View all releases at the foot.
- Pro
Card Grid Changelog
Spotlights and mediaSix releases of a dashboard builder as a bento of cells on shared hairlines: the newest spans two columns and two rows with a short list, the rest are single cells with a feature icon, a type tag, version, date, title and a Read more link.
- Pro
Compact Timeline Changelog
Lists and timelinesThe last three weeks of a time-tracking app on one thin rail: six releases of two small lines each, with the dot's shape (circle, diamond, square, ring) telling the kind and a one-line key.
- Pro
Expandable Release Entries
Lists and timelinesFour release rows that each open to a sentence and a copyable migration snippet in a focusable code region; the newest is open on load and any number can be open.
- 010203Pro
Numbered List Changelog
Lists and timelinesA ladder of the five latest releases of a habit app: a short header beside a divider, and large ordinals 01 to 05 with a hairline between each number and its version, tag, title, sentence and date.
- Pro
Release Notes Changelog
Spotlights and mediaOne release written as a long article behind a split divider, with a sticky contents list that marks the section on screen and turns into a row of chips on a phone.