shadcn.io is not affiliated with official shadcn/ui
Numbered Steps Banner Block for React
A setup tracker for a workspace tool: four numbered steps in a row joined by a line, finished ones checked, the current one ringed, and a Resume button under it.
Installation
Overview
A numbered steps banner for React with Base UI, for sending someone back to a half-finished setup. A title with "Step 3 of 4" sits above a band under its own rule, which holds an ordered list of four steps laid out in a row. Each step is a numbered circle (a filled check when finished, a ringed number for the current step, a muted number for the next), a line to the following step that is solid up to the current one, and a title; a Shine Button link, Resume, sits under the current step. It's built from Shine Button and Guides, and it follows your theme.
FAQ
How do I change the steps?
Edit STEPS at the top of the file: each entry has a title and a state (done, current or next). Mark exactly one step current; the "Step 3 of 4" in the header is text you update with it.
Why is it a list and not the Steps component?
This tracker only reports progress: nothing in it is a tab or a button that moves you, so it is an ordered list with the current step marked aria-current="step" and each step's state written out for screen readers ("Completed: Connect your data"). The Resume link is the one action.
How do I point Resume at the right place?
Resume is a link (href="#"): send it to the current step's page.
It renders the link it's given with render, with nativeButton={false}.
Why has the block no line at the bottom?
It ends on its band, and the next block's top rule is its bottom edge, so a closing rule would double it.
What happens on a narrow phone?
Each step is at least 11 rem wide, so on a narrow screen the row scrolls sideways, and on load the current step is brought to the middle, so the Resume button is in view. The row holds a focusable button, so keyboard users can reach it; it needs no extra tab stop. From a tablet up the four steps fit and nothing scrolls.
Related
- 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 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.
- 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.
- 72%Pro
An export job in one row for an invoicing tool: a thin progress bar with its percentage and seconds left that fills once and turns into a Download button, with Cancel and Run again.
- Pro
Full-Bleed Launch Banner
Numbered listsA launch-week callout for a product analytics tool: a tinted band with a header and a waitlist button, then five day cells, one launch each, today's lit.
- Pro
Icon Action Banner CTA
Slim bandsA 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.