shadcn.io is not affiliated with official shadcn/ui
Numbered Feature Highlights Banner Block for React
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.
Installation
Overview
A numbered feature highlights banner for React with Base UI, for a release with a few changes worth reading about. A heading and a line sit at the start; at the end an accordion in a frame, its corners marked with + crossings, has three rows numbered 1, 2 and 3 beside each highlight's title. One row is open at a time, the first by default; opened, a row shows one sentence and an underlined link, and its number fills in. It's built from Accordion and Guides, and it follows your theme.
FAQ
How do I change the highlights?
Edit HIGHLIGHTS at the top of the file: each entry has an id, a title, a detail sentence, and a link with its href. Keep the sentences about the same length, so opening another row hardly changes the block's height.
How do I choose which row starts open?
Set defaultValue on Accordion to an array holding the item's value.
How is it named for screen readers?
Each title is a button inside its own heading (h3, under the heading above it), so a screen reader user can jump between highlights; the button reports expanded or collapsed and opens with Enter or Space. The numbers are decoration and hidden from assistive technology, so they never become part of a name. The block is a labelled section.
Does the block move when I open another row?
Only by the difference between the two panels. They are one sentence and one link each, written to run to the same number of lines, so switching rows barely moves anything. Closing the open row does shorten the block, as any accordion does.
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.
- 2/5Pro
Numbered Onboarding Steps Banner
Numbered listsAn interactive five-step setup checklist as a card in card: Start completes the next step and the button moves down a row, with a live count and an All set state.
- Pro
Expandable Banner
Disclosures and tabsA fee-change notice for a rent-collection tool as a card in card: one header line that opens a sentence, three rows of facts (Now, From next renewal, Why) and a link.
- Pro
Expandable Timeline Banner
Disclosures and tabsA parcel notice for a tracking product as a disclosure: a header that names the current stage and its step, and a vertical four-step timeline when opened.
- Pro
Tabbed Carousel Banner
Disclosures and tabsA tabbed announcement for a documentation platform: a card with three underline tabs (What's new, Tips, Updates) and a panel under them, driven by the visitor, with no autoplay.
- Pro
Accordion FAQ Features
Tabs and accordionsA features section for an API gateway told as six capability questions in an accordion beside a sticky side header, each answer a sentence and a small drawing of the capability at work.