shadcn.io is not affiliated with official shadcn/ui
Masonry Awards Block for React
Ten text-only award plaques in three CSS columns of varied heights, each with a small drawn rosette, divided by column hairlines with + marks on the top rule.
Installation
Overview
A masonry of award plaques for React with Base UI. Ten text-only plaques flow down three CSS columns under a start-aligned header with a tally counted from the list ("10 awards, 3 from the Fjordfield Awards"). The plaques vary in height: some carry a two-line citation from the jury, some only the award and its programme, so the columns settle into an uneven, natural rhythm. Each starts with a small rosette drawn in SVG (one of four, with a different heart). The columns are divided by a hairline from the browser's own column rule, the plaques by a hairline above each, and + marks sit where the column rules meet the page's top rule. Reading order is down each column in turn, and on a phone it is one column. There are no images. It's built from Guides, inline SVG and your theme's tokens, with a CSS transition for the entrance. The programmes are made up for the example: replace them with your own.
FAQ
How do the columns work?
The list is a CSS multi-column container (columns-3 from md) with no gap, so the browser fills the first column, then the second, then the third, balancing their heights, and each plaque stays whole (break-inside-avoid). The hairline between columns is the browser's column rule, so it always runs the full height. A plaque's top hairline meets the top rule where a column starts, so it draws a single line there. Below md there is one column.
How do I change the awards?
Edit AWARDS at the top of the file. Each has a title, its programme, a fixed year and a mark; a citation is optional and gives that plaque a taller body. Add or remove plaques and the columns rebalance. The header's tally is counted from the list: the programme that gave the most awards, and how many.
In what order are the plaques read?
In the order of the list, which is also the visual order: down the first column, then the second, then the third. That is true on a phone too, where they run as one column. Each plaque has the award as a heading, then its programme and year, then the citation if there is one.
Are these real awards?
No. Fjordfield, Rushmoor, Sedgebrook, Tamsworth, Thornecastle and Underhallow are made-up programmes, Quillfinch a made-up platform. The rosettes are drawn by the block, not copied from any award. If you show a real award, name it in text and use its official badge only where its rules allow it.
How do I draw a different rosette?
rosette(lobes, motif) draws a scalloped disc with an inner ring and a motif at its heart: change the lobe count (10 to 16 reads well at 24 pixels) or give it a motif of your own, a list of filled shapes and a list of strokes in a 64 by 64 box. The drawing is hidden from assistive technology.
Related
- Pro
Asymmetric Mosaic Awards
Cards and gridsSeven awards for a type marketplace on a 4-column hairline grid with different spans: a 2 by 2 lead with a large drawn trophy, two 2 by 1 runners-up and four small cells.
- “Pro
Bento Awards
Cards and gridsThe evidence behind one award in five cells set apart: the grand prize with a drawn seal, a counting figure, a jury quote, a score with a bar and a small laurel.
- Pro
Minimal Typography Awards
Lists and tablesAwards as pure typography for a writing app: five lines between hairlines, each the year in tabular figures, the award at heading weight and its programme muted, with no drawings, icons or buttons.
- Pro
Category Grid Awards
Cards and gridsSixteen awards sorted into six categories on a 3 by 2 hairline grid: a drawn glyph, a derived count and the two newest awards named in each cell, the largest category outlined.
- Pro
Dense Badge Wall Awards
Badges and sealsA wall of twelve drawn award badges on shared hairlines, four across, with a tally counted from the list and a show-all button on phones.
- Pro
Grid Awards
Cards and gridsFour awards for a mortgage app in a 2 by 2 grid on shared hairlines, each tile with its own drawn trophy, the award, the programme and the year.