shadcn.io is not affiliated with official shadcn/ui
Numbered Changelog Banner Block for React
A release banner for a release-management tool: the latest version set large at the start, and the three before it as a numbered list at the end, split by a solid divider.
Installation
Overview
A numbered changelog banner for React with Base UI, for a product whose releases deserve a glance. A band between the page rails splits on a solid divider that meets the top rule. At the start, the latest release is set large: a Latest badge, "v4.2.0" in big mono, one sentence and an underlined link to its notes. At the end, the three releases before it are an ordered list numbered 2 to 4, each with its version, a line and a Notes link. It's built from Badge and Guides, and it follows your theme, light or dark.
FAQ
How do I change the releases?
Edit LATEST for the large release and EARLIER for the list, newest first. Each entry is a version, a line and an href. If you want more or fewer rows, change the array; the numbers are counted from FIRST_NUMBER.
Why does the list start at 2?
The latest release is number 1, set large on its own, so the list continues the count. The list is an ordered list with start={2}, so the order is exposed to assistive technology, and the visible numbers in the circles are decoration. Change FIRST_NUMBER if you drop the large release.
How do the links read to a screen reader?
Each Notes link has an aria-label that names its release ("Release notes for v4.1.3"), so a list of links doesn't read as a row of identical "Notes".
Why is the version in bidirectional isolation?
A version string mixes letters, digits and dots. In a right-to-left layout the browser can reorder the dots around the digits, so the version sits in a bdi element and keeps its order in either direction.
Related
- 010203Pro
Numbered Announcements Banner
Numbered listsA weekly digest band for a product-updates tool: a quiet title and count, then three numbered announcements on hairlines, each row one link with a trailing arrow.
- v3.9v4.0Pro
Full-Bleed Version Banner
Top barsAn upgrade band for a UI kit: a tinted strip that shows the version you run next to the latest, v3.9.2 to v4.0, a short note and a link to the changelog.
- $Pro
Expandable Code Banner
Disclosures and tabsAn install notice for a CLI toolkit as a disclosure: a header with a version badge opens package-manager tabs and the command in a mono box with a Copy button.
- Pro
Changelog Preview Hero
Updates and timelinesA split hero for a code editor that releases on a schedule: the headline on one side, a ruled ledger of the four latest releases across a divider.
- 123Pro
Numbered Feature Highlights Banner
Numbered listsThree numbered highlights for a workflow tool as a framed accordion: open one row to read a sentence and a link, one at a time, beside a heading.
- Pro
Top Bar Banner
Top barsA slim announcement strip for a writing app's release: one centred line with the version, the news and an underlined link, and a ghost button that folds the strip away.