shadcn.io is not affiliated with official shadcn/ui
Advisory Board About Block for React Aria
An advisory board for a legal-software company: five advisors in an accordion, each with the practices they cover, why they advise, and one piece of advice.
Installation
Overview
An advisory board for React with React Aria, written for Sagewood, a fictional case tool for small law firms. A compact header sits over five advisors in an accordion that runs from rail to rail. Each row shows initials, the name, how long they have advised ("Year 2", counted from the company rather than a calendar year) and the practices they cover. Opened, a row says why they advise Sagewood and quotes one piece of advice they gave. One row is open at a time, and the block ends on the last row so it does not draw a second rule above the next block. The page's rails and top rule come from the Guides spine. It's built from Accordion, Avatar, Badge and Guides, with a CSS entrance and your theme's tokens for every colour. For an about page that should name the people a company calls before it ships a decision. The people are fictional and the quotes are example data.
FAQ
How do I change the advisors?
The advisors are ADVISORS at the top of the file. Each has a name, a since such as "Year 2", practices, a why and an advice quote. The initials are derived from the name. The first advisor starts open. Add or remove rows freely: the accordion and its last-row rule are drawn from the array.
How is it read by a screen reader?
The heading is the section's only h2. Each advisor is an h3 whose button opens the row, so the outline lists the five names. The practices are badges, the reason is a paragraph and the advice is a quotation. The initials avatar is decorative, because the name is written beside it. The lines are drawn by a layer 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 advisor's advice in the HTML?
Yes: a closed row's reason and quote stay in the page, hidden until you open the row or find-in-page reaches them.