shadcn.io is not affiliated with official shadcn/ui
Press to Flip Award Cards Block for React
Six award cards in a hairline grid that are each a button flipping on press or Enter, from a drawn mark and the award to the entries it was selected from and its judging criteria.
Installation
Overview
A flip-card grid for React with Base UI. A compact header carries a tally counted from the list, then six cells that share their hairlines run rail to rail, three across (two on a phone), ending the block. Each cell is a real button with aria-pressed holding a card that turns in 3D: the front shows a drawn mark (a target, a star, a book, a bulb, a cap or a cup), the award, the programme and the year with a "Turn over" hint; the back is inverted and reads how many entries it was selected from, in how many countries, and the criteria it was judged on. The faces carry the opacity, never the turning parent. Under reduced motion the card doesn't turn but cross-fades, and still flips. The awards and programmes are made up for the example: replace them with the recognition your product has actually received.
FAQ
How do I change the cards?
Edit AWARDS: each has an award, a programme, a year, a mark, the entries and countries it was selected from and three criteria. The header's tally sums the entries.
How does a card flip?
Press it, or focus it and press Enter or Space. Each card keeps its own state, so any number can be turned at once. The button reports aria-pressed and is named "Turn over the … card".
What do screen readers hear?
The words are in the page once, as hidden text beside each button: the award, the programme and year, then the back's sentence and criteria. The faces repeat them but are hidden from assistive technology, so nothing is read twice.
What happens under reduced motion?
The card doesn't turn: the back lies over the front and the two swap opacity in 200 ms, so a press still shows the other side.
Related
- Pro
Medallion Flip Awards
Badges and sealsFive drawn coin medallions that a Front and Back toggle turns over together, a front emblem and a back year, with each side's text kept in the page.
- Pro
Fanned Plaque Stack Awards
Reveal and browseA fanned pile of five award plaques that a Stack and Spread toggle lays out in a row, or on a phone a vertical list, with a CSS transform transition.
- 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
Flip Cards Team
Grids and wallsFour people of a florist network as cards that turn over in 3D on a button press: the front is initials, a name and a role, the back a quote and two things to ask them about; reduced motion cross-fades.
- 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
Laurel Display Awards
Badges and sealsA band of five awards for a weather app, each a laurel wreath drawn in SVG around the award's title and year, with the programme, category and issuer in text and the lead award larger in the middle.