Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Release Filter Navbar Block for React

A release navbar for a changelog product with category filters, unseen counts that clear when opened, a version badge and a feed link.

Framework
UI library

Preview

Preview width

Installation

Part of Pro
Pro unlocks the code and one-line install of every Pro button and text effect, plus the MCP for your AI editor.
Have Pro already? Sign in to open it.Opens here as soon as you're Pro.

Overview

A release navbar for React with Base UI, the bar of Patchwick, a release-notes tool. All, Features, Fixes and Breaking are filters in a nav, each with an unseen count derived from the typed notes. Opening Features, Fixes or Breaking clears that category's unseen count and a polite line says so ("Features, 3 unseen cleared"). Opening All reports the remaining total and clears nothing. A version badge and a release-feed link sit beside Subscribe, the Shine Button, which toggles to Subscribed and says the demo stored nothing. On a phone the filters scroll, with fades at the ends, and the open one moves into view. The page's rails and top rule come from the Guides spine, and the bar draws no second rule. It's 56 pixels high. It's built from Badge, Button, Shine Button and Guides. For product and changelog sites whose header filters the release, rather than listing it.

FAQ

How are the unseen counts calculated?

NOTES is the source: each note has a category and whether it starts unseen. A category's badge is the notes in that category that are unseen and have not been opened in this session. All's badge is the sum of those. Notes that start already seen never count. Opening a category adds its note ids to the seen list, so the badge drops to zero and stays there. Opening All does not add anything. The badges reserve their width at zero so the row doesn't jump.

Are these tabs?

No. They are buttons in a nav named Releases, and the open one has aria-current="true". There is no tab panel in this block: the page under the bar is what would change in your app. Tab moves between them. They don't use a tab arrow-key pattern, because a tablist without panels would be a fake control.

What do Subscribe and the feed link do?

Subscribe toggles a local flag. On, the label becomes Subscribed and the polite line says the demo stored nothing. Off, it says the subscription was removed. It does not call a server. The feed is a link to #releases with the accessible name Release feed. Point it at your feed. The feed button renders the link with render, with nativeButton={false}. Subscribe itself is a button. It takes onClick.

How do I change the version and the notes?

Edit VERSION (shown in the badge, hidden below sm) and NOTES. Keep prices and versions as data the badges read, not as a second formatted string. The badge is an outline badge, so it doesn't compete with Subscribe.

How does it work on a phone?

The wordmark shrinks to its icon, the version hides, and the filters become a horizontal scroller with a fade at each end. The open filter scrolls into view, instantly when reduced motion is requested. The feed link and Subscribe stay. Nothing wraps onto a second row. The bar is 56 pixels.

What moves, and what happens with reduced motion?

Nothing moves on load. The open filter scrolls into view, and a band of light sweeps across Subscribe once on hover and keyboard focus. With reduced motion the scroll is instant and the light fades in where it stands. Clearing a count swaps the digit in place.

  • Pro

    A one-bar navbar for an open source embedded database: a version badge by the wordmark, Docs, Examples and Playground links, a Releases menu of the last three versions, a GitHub stars button with a typed count and a Get started Shine Button.

  • Pro

    A one-bar navbar for a design-handoff tool with its news inside the row: an Announcement pill between the links and the actions, moved to the top of the sheet on small screens.

  • Pro

    Tabs Underline Navbar

    Link highlights

    A navbar for a financial reporting tool built as cells: the wordmark in its own cell, full-height report tabs whose 2 px mark sits on the bar's bottom edge and slides on selection, and an Export action, with arrow-key navigation and a scrolling tab row on phones.

  • Pro

    A two-row header whose second row shows the chosen section's four links, the three link sets cross-fading in one grid cell, with the current section and the current page both marked.

  • Pro

    A one-bar navbar for a long-form publication whose five category triggers each open a small panel of that category's three latest pieces, with reading times as outline badges and an All stories link, and accordion groups in a sheet on phones.

  • Pro

    A one-bar marketing navbar for a product roadmap tool: a wordmark, a Product menu of four areas with icons and one-line descriptions, plain links with the current page marked, Sign in and a Shine Button, and a sheet with the same links on phones.