Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Numbered Announcements Banner Block for React

A 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.

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 numbered announcements banner for React with Base UI, for a few related updates that should sit together without competing with the page. A band between the page rails opens with a quiet title and a count, then an ordered list of three announcements on hairlines that run from rail to rail. Each row has its two-digit number in tabular mono, one line of text and a trailing arrow; the whole row is a single link, so it tints on hover and rings on keyboard focus. There is no button and no state. It's built from Link Overlay and Guides, and it follows your theme.

FAQ

Are the numbers part of the list?

The rows are an ordered list (ol), so the order is exposed to assistive technology on its own; the visible 01, 02, 03 are decoration and hidden from it, which stops a screen reader from reading the digits as part of each title. Change ANNOUNCEMENTS and the numbers follow.

How many rows can it hold?

Three is the sweet spot and five is the limit: past that it stops reading as a banner and starts reading as a notification list. If you need more, link to your changelog from the last row instead of adding rows.

What happens in a right-to-left layout?

The number sits at the start and the arrow at the end, in both directions, and the arrow flips to point the other way. Titles wrap naturally; nothing is positioned with physical sides.

Why does it have no line at the bottom?

The next block's top rule is this block's bottom edge, so a closing rule would double it. The last row simply ends there.

How does it fit on a phone?

Titles wrap to two lines beside the number and the arrow, and each row stays one big touch target. Nothing scrolls sideways at 320 pixels.

  • Pro

    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.

  • Pro

    Three 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

    A leaderboard banner for an open-source tool: the top three contributors this week as a framed, ranked list on shared hairlines, each cell one link with an initials avatar and a merged count.

  • Pro

    A two-way fork for a component library: a tinted half with a short heading, and two ruled rows on a divider, each a whole-row link with a line about where it leads and an arrow.

  • Pro

    A quiet navigation strip for a product site: five section links separated by dots, with one underline that slides to the current page.

  • Pro

    A slim documentation band between solid rails: a framed icon tile, a title that is one big link over the whole row, and a Shine Button to the quickstart.