shadcn.io is not affiliated with official shadcn/ui
Behind the Scenes About Block for React
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 Base 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. Tab moves between the rows' buttons; this base does not add arrow-key movement between them.
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.
Related
- Pro
Spec Sheet Infrastructure About
Security and platformA layer spec sheet for a managed-hosting company: a list of four infrastructure layers as single-choice toggles, and a framed sheet of specs for the chosen layer.
- Pro
Discipline Tabs Craft About
Principles and processTabs for four disciplines of a design-to-code tool: each panel lists three principles with a before and after sample and the figure that changed.
- Pro
Region Rows Data Centers About
Security and platformRegion rows for a bare-metal host: six regions in an accordion with a status dot and a capacity bar, each opening to its hardware, round trips to its nearest regions and audits.
- Pro
Domain Tabs Security Practices About
Security and platformSecurity practices for a password manager in four domain tabs, each a list of controls marked Done or Rolling out, under a security score worked out from the controls.
- Pro
Culture Rituals About
Culture and valuesA team's rituals sorted by how often they happen: three bands, every week, every quarter and every year, each with three cells that say what the ritual is, who comes and how long it takes.
- Pro
Commitments Ledger About
Principles and processA ledger of a nonprofit CRM's public promises: an ordered list of rows with the promise, how far along it is as a word and a progress bar, who owns it and when it was last checked, and a tally counted from the rows.