shadcn.io is not affiliated with official shadcn/ui
Values Accordion Team Block for React
Five working values at an accessibility-audit company as a single-open accordion in a split: each value is a habit you could watch, and opened it shows what it looks like in the work and one teammate's words.
Installation
Overview
A culture section for React with Base UI, for Stoneby, an accessibility audit tool. The first column holds a title, one sentence and, at its foot, the five faces behind the quotes; a hairline divider, meeting the top rule with a + mark, separates it from a single-open accordion that runs to the end of the block. Each value is written as a habit you could watch ("Test with the tools people really use", "Say what we have not checked"), not a slogan. Opened, a value says what it looks like in the work and shows one teammate's words, with their name and role. One value is always open, so there is always a quote on screen. On a phone the header stacks above the rows and a rule with + marks replaces the divider. It's built from Accordion, Avatar, Avatar Group and Guides, with CSS transitions and your theme's tokens for every colour. The people and the quotes are made up for the example.
FAQ
How do I change the values and the quotes?
Edit VALUES at the top of the file. A value is an id, a title (the habit), a behaviour sentence, a quote and the speaker and role who said it. The numbers beside the titles, the "5 habits" in the header and the faces at the foot of the first column all come from that list, so adding a value needs no other change.
Why can't I close the open value?
It is a single-open accordion that always keeps one value open. That is on purpose: the block keeps roughly the same height and always shows a quote. Opening another value closes the first. To let people close everything, allow the accordion to collapse
(remove the guard in change that ignores an empty array).
How does it work with a keyboard and a screen reader?
Each value is a button inside its own h3 under the section's h2, and the open one says it is expanded. Tab moves between the rows and Enter or Space opens one.
This library leaves the arrows to Tab: every row is a tab stop.
The quote is a real blockquote in a figure, with the speaker in its caption, and the faces at the foot of the first column are decoration.
Is the text of a closed value still in the page?
Yes: closed rows stay in the document and are hidden until found, so find-in-page opens the row that matches.
Related
- Pro
Values Examples Team
Culture and valuesFour company values as vertical tabs in a split; each page says what the value means and lists three real examples of someone doing it, with the year of the company, revealing one after another.
- Pro
Weekly Rhythm Team
Culture and valuesHow a week runs at a project-planner company: five day columns in one hairline band, each with a ritual, its time, who hosts it and a length in minutes that counts up once, drawn to the same scale as a short bar.
- Pro
Culture Behaviors About
Culture and valuesTwo equal halves split by a hairline, what a feedback-tool company celebrates and what it discourages, each as rows with the behaviour and what it sounds like in quotes, marked with a plus and a minus, never a colour.
- Pro
Animated Accordion Team
Tabs and accordionsTwelve people of a clinic-booking company in four department rows of a multi-open accordion, each with a stack of initials and a headcount, and an Expand all button that opens every department at once.
- Pro
Department Quote Wall Team
Culture and valuesFour departments of a farm-lease marketplace as bands: each names its department and headcount at the start and gives one display quote from someone in it at the end, split by a solid divider.
- Pro
Values Slider About
Culture and valuesA carousel of six values for an HR platform, one per slide in a band from rail to rail: the value, a practice example and one figure side by side, with Previous and Next buttons, a counter and dots.