Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Segmented Accordion Mockup Features Block for React

A features section for a block editor: a segmented control picks a job, an accordion lists its four features, and the one editor screen beside it rings and spotlights the part of the page the open row names.

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 features section for React with Base UI, built around one screen that never changes. Blockbook, a block editor for team docs, is drawn once as a top bar, a page tree, a document and a comment rail, flush to the start rail and masked at its foot. A segmented control picks the job (Write, Organise or Review) and swaps the four rows of an accordion on the end side. Each row names a part of the page: opening it draws an outline ring on that part and dims the rest, so the picture answers the list without a single screen swap. It's a segment group, an accordion and the Guides line kit, with your theme's tokens for every colour and no button. For editors, dashboards and any product whose features are best shown as places on one screen.

FAQ

How do I change the jobs, the rows and the highlighted parts?

Edit JOBS at the top of the file: each job has a label and four rows, and each row has a title, a sentence, a place for the caption and a region. The region is one of the ids in RegionId, and the part of the screen drawn inside the matching Region gets the ring when that row is open. To add a part, add an id, wrap the new piece of the drawing in a Region with it, and point a row at it.

How does the highlight work, and does it move anything?

Every part of the screen is wrapped in a Region. The open row's region gets an outline ring; every other region is covered by a translucent scrim that fades in over it. Both are drawn with a ring and a pseudo-element, so no part changes size or position and nothing shifts when you open a row.

What happens to the open row when I change the job?

Each job remembers its own open row; a job you have not touched is open on its first row. The accordion always has one row open, because the screen always highlights something, so you cannot close it. Closing the open row is ignored: the change handler keeps the previous row when it receives none.

Is the screen available to screen readers and the keyboard?

The screen is a drawing, so it is hidden from assistive technology and has nothing to focus. What it shows is in the text: each row says what the feature does, and a caption under the accordion names the part that is highlighted ("Slash menu, under the last block"). The segmented control and the accordion are real controls with visible focus. Tab moves between the accordion rows; the arrow keys move between the jobs.

What moves, and what happens with reduced motion?

The header and the band fade up once when the page loads, the open row's panel slides open, and the ring and the scrim fade in about a third of a second. With reduced motion the fade-up and those fades are off, and the highlight changes at once.

How does it fit on a phone?

The accordion comes first and the screen follows under a hairline. The screen reflows at its own width: the page tree becomes a strip above the document and the comment rail a strip below it, so every part you can highlight is still there. Below the large breakpoint the screen is not cropped by a mask.

  • Pro

    A features section for an operations console: an accordion of four features whose open row swaps the console screen drawn in a framed figure beside it, by pointer, focus or tap.

  • Pro

    Accordion FAQ Features

    Tabs and accordions

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

  • Pro

    A features section for a release tool: a line tab switch (Plan, Ship, Review) that swaps one split band, with a drawing flush to the start rail and the copy on the end side.

  • Pro

    A features section for an email-automation product: a pill segment control swaps three accordion steps (draft, send, measure), and each open step shows its own small drawing beside its text.

  • Pro

    A features section for an admin console in three panes: a vertical tab rail of five categories, an accordion of that category's features, and a console screen on the end side that outlines the row of the open feature.

  • Pro

    A features section for a knowledge base as a working tree: a rail of three categories and six features beside a detail panel with the selected feature's sentence, three ticks and a small drawing.