shadcn.io is not affiliated with official shadcn/ui
Alternating Rows Features Block for React
Two plain alternating rows for a design-system kit in one box of shared hairlines: a permissions card with three toggles, and a notification card over a stack of avatars.
Installation
Overview
A features section for React with Base UI in its simplest alternating form. Two rows sit in one rounded box of shared hairlines, so every edge is a single line. Each row is a cell of copy (a heading, a sentence and a text link) beside a tinted cell holding a component vignette rather than a full screen: a permissions card with three toggles, and a notification card laid over a stack of avatars. The first row puts its vignette at the start and the second at the end. The toggles and avatars are the catalog's Switch and Avatar group, drawn in the foreground colour and in your theme's tokens. For component libraries, design systems and any product where a single card explains the feature.
FAQ
How do I swap in my own vignettes?
Each vignette is a small component (PermissionsCard, NotificationCard) passed as the children of a Row. Replace it with any card you like, and edit ROLES and PEOPLE at the top of the file to change what the two existing ones show. A Row supplies the heading, the sentence, the link and the tinted cell.
Are the toggles interactive?
No. They are the catalog's Switch drawn at its small size, but the whole vignette is inert and hidden from assistive technology: it is a picture of the product, and the heading and sentence beside it say what it shows. Remove inert and aria-hidden from the cell if you want a working demo, and give each switch a real label.
How do I change which side a row starts on?
Pass flip to a row to put its vignette at the start on wide screens. The copy always comes first in the reading order and on a phone, so the heading is never read after a picture.
Does it follow my theme?
Yes. The box, the tinted cells and the cards use theme tokens only, so they are light on a light page and dark on a dark one. The switches that are on use the foreground colour, so the primary colour stays free for a real button elsewhere on the page.
Related
- Pro
Alternating Code Block Rows Features
Alternating rowsThree alternating bands for a typed event-stream client, each pairing a sentence with a code window that draws a different artifact: a call with its autocomplete popover, a config file with one line marked, and a command's output.
- Pro
Alternating Mockup Rows Features
Alternating rowsThree alternating bands for a support back office, each pairing a sentence with a browser window that holds a different admin screen: a filtered ticket table, a settings form with toggles and a weekly chart with its legend.
- Pro
Alternating Device Frame Rows Features
Alternating rowsTwo alternating rows for a transit app, each pairing a sentence with a phone drawn as a ring on a hairline floor: the trip planner with line chips and the live arrivals with countdowns.
- Pro
Alternating Stripe Sections Features
Alternating rowsThree tinted stripes for a CI platform: pipeline runs beside their copy, an environments table beside its copy, then a centred statement over a three-cell grid of build figures.
- Pro
Numbered Alternating Rows Features
Alternating rowsFour numbered steps for a feedback-triage tool as alternating bands, each with an outlined numeral, a paragraph and a drawing of the step on the other side of a split divider.
- Pro
Zigzag Screenshot Rows Features
Alternating rowsFour alternating feature rows for a team workspace, each with a badge, a title, three ticks and a framed drawing: a graph of linked docs, a rule builder, a global search and a live document.