shadcn.io is not affiliated with official shadcn/ui
Typed Summary Reviews Block for Solid
A hand-written, labelled summary of 36 earbud reviews: two sentences that each end in a count opening a popover of three snippets, the average rating and five themes with mention counts.
Installation
Overview
A summary of reviews for Solid with Ark UI, for the Stoatfold Buds, a fictional pair of true-wireless earbuds. The summary is typed, not generated, and says so: a Summary badge sits beside "Summary of 36 reviews". Under a rule with + marks, a divider splits the band. At the start, two sentences each end in a count ("24 reviews", "9 reviews") that opens a popover with three of the snippets behind it, followed by the average rating worked out from the typed tally. At the end, five themes as a list with how many reviews mention each and a bar in the text colour. On a phone the themes sit under the summary. It's built from Popover, Badge, Rating and Guides. The reviews and counts are example data.
FAQ
Is the summary generated?
No. Both sentences, the snippets and the counts are typed in the file and labelled as a summary; the block shows no confidence figure and claims no automated analysis. If you generate summaries yourself, put the result into PRAISE, COMPLAINT and the two sentences, and keep the label that says what it is.
Where do the numbers come from?
THEMES holds each theme's mention count; the sentences read their counts from it (mentionsOf), so a sentence and its theme row can't disagree. The average and the stars come from TALLY, the typed count of reviews per star rating, by whole-number maths.
How do the count popovers work?
Each count is a button. Press it with the mouse, Enter or Space and a popover lists three snippets with their reviewers and star ratings; Escape closes it and puts focus back on the count. The button's name says what it opens ("24 reviews: read three of them about battery life").