shadcn.io is not affiliated with official shadcn/ui
Behind the Scenes About Block for Radix UI
One Tuesday at a theatre-software company, by department: an accordion of Support, Infrastructure and Design, each with that day's numbers, tools and an honest note.
Installation
Overview
A Tuesday behind the scenes for React with Radix UI, written for Greenroom, a fictional company that runs the show file for regional theatres. A compact header sits over three departments in an accordion ruled from rail to rail. Each row names the department and what that room is for. Opened, it shows three figures from one Tuesday, the tools on the desk as badges, and one sentence about the part still done by hand. One row is open at a time, and the block ends on the last row. The page's rails and top rule come from the Guides spine. It's built from Accordion, Badge and Guides, with a CSS entrance and your theme's tokens for every colour. For an about page that should show a company at work without a photo. The Tuesday and its figures are example data.
FAQ
How do I change the departments?
The departments are DEPARTMENTS at the top of the file. Each has a name, a line, a list of facts (a label and a value), tools and a note. The first department starts open. Add a fact and the opened row gains a column on a wide screen and a stacked line on a phone.
How is it read by a screen reader?
The heading is an h2. Each department is an h3 whose button opens the row. The opened figures are a description list, the label first and then the value, so "Tickets closed, 46" reads as a pair. The tools are a list of badges. The note is a paragraph after them. The lines are hidden from assistive technology.
How does the accordion work for a keyboard?
Enter or Space opens a row, and opening one closes the open one. Up and Down move between the rows' buttons.
Is a closed department's Tuesday in the HTML?
No: a closed row's figures, tools and note are not in the page until the row opens.