shadcn.io is not affiliated with official shadcn/ui
Jury Statement Awards Block for React
The jury's statement for each category a legal-drafting tool won: the categories as a radio group at the start, the chosen one's statement as a large quote with its jurors' avatars at the end.
Installation
Overview
A jury statement for React with Base UI. At the start, a compact header and the four categories the product won as a real radio group, one card for each. At the end, behind a divider that meets the page's top rule with a + mark, the jury's statement for the chosen category as a large quote, with its jurors' initials avatars and names under it. Arrow keys move between the categories; the statement changes with the choice and is announced politely. Every statement is stacked unseen under the open one, so the block keeps its height whichever you choose. On a phone the categories become a row of chips that scrolls sideways with the next one peeking, and the statement sits under it. It's built from Radio Group, Field, Avatar, Guides and your theme's tokens. The Kestrelthwaite Awards, the jurors and their words are made up for the example.
FAQ
How do I change the categories and statements?
Edit CATEGORIES at the top of the file. Each has an id, a label for the card, a title (what it won, in a few words), the jury's statement, and its jurors as initials and names. Add or remove a category and the radio group, the hidden copies that hold the height and the statement follow. Four categories read best; with more, the chip row scrolls further on a phone.
How does the keyboard work?
It's a real radio group: Tab enters it, the arrow keys move and choose in one step, and Tab leaves. Choosing changes the statement at once and nothing else on the page moves.
Why doesn't the block jump when I choose?
Every statement is rendered in the same grid cell: the open one is visible and the others sit unseen under it, hidden from assistive technology and inert, so the cell is always as tall as the longest statement. Choosing only swaps which one shows, with a short fade that reduced motion removes.
How do screen readers read it?
The group is named "Category"; each radio reads its label and its short title. The statement sits in a polite live region, so the new quote and its jurors are read after a choice, in a figure with the quote and a caption naming the jurors. The avatars are decorative and hidden.
Related
- Pro
Judge Hover Card Awards
People and teamsThe jury of a hackathon cup as six cells on shared hairlines, each an initials avatar, a name, a role, a workplace and the fields judged, with a short bio in a hover card on hover, focus or touch.
- Pro
Radar Scorecard Awards
One featured awardOne award scored in depth for an application-performance monitor: a radar chart of five criteria beside the same scores as a numbered list with bars, a derived total and the lead judge's comment.
- Pro
Category Tabs Awards
Filters and searchUnderline tabs by award category, each with a count, over a two-column grid of awards with a drawn mark in a frame, beside a split divider.
- Pro
Judges Quotes Testimonials Awards
Press and quotesThree judges' quotations for a meeting app, each tied to the award it is about: the award's drawn mark, the award and programme, the quotation, and the judge's name and role, in cells with overshoot lines.
- Pro
Status Radio Toggle Awards
Filters and searchA radio group styled as a pill switch with a sliding thumb filters awards by status, with an icon and a word on every row and a live count.
- Pro
Featured Plaque Awards
One featured awardOne grand award for a payments platform: a large framed plaque with a laurel wreath and the year on a ribbon beside the heading, a description list of the facts and one sentence from the jury.