shadcn.io is not affiliated with official shadcn/ui
Carousel Awards Block for React
Eight awards for a hotel booking engine in the catalog Carousel, three plaques per view, each a drawn laurel with the programme, category and a jury line, with arrows, dots and a counter.
Installation
Overview
A carousel of awards for React with Base UI. Eight plaques sit in a framed track whose lines overshoot its corners and end in + marks: three per view from lg, two from md and one on a phone with the next peeking in. Each plaque is a laurel wreath drawn in SVG (two mirrored branches of leaves in your theme's foreground, each programme's wreath shaped and lettered differently) framing the award's short title and its year, over the programme as a heading, the category and one sentence from the jury. The previous and next buttons sit at the end of the header; under the track a counter ("1 to 3 of 8") and one dot per page show where you are, and the arrow keys turn the pages too. It never moves by itself, and plaques that are off the page are out of the tab order and out of the reading. It's built from Carousel, Button, Guides, inline SVG and your theme's tokens. The programmes are made up for the example: replace them with your own awards.
FAQ
How do I change the awards?
Edit AWARDS at the top of the file. Each has a programme, a short title the wreath frames ("Gold", "Top 10"), the category, a one-sentence citation and a fixed year: an award given in 2025 stays 2025. lettering sets the title's type on the badge, and pairs and spread shape its wreath. The slide names, the counter, the dots and the page count are all derived from the list, so adding a plaque needs no other change.
How many plaques show at once?
Three from lg, two from md, one below that. On a phone the next plaque peeks in beside the current one as a cue to swipe. The counter, the dots and the arrows follow the number in view: with three plaques per view, eight awards make six pages, one step at a time.
Can I use the keyboard?
Yes. The arrow buttons and the dots are real buttons, so Tab reaches each of them, and the arrow keys turn the carousel while focus is inside it (the keys follow the page's direction, so the end arrow is always next). The buttons wrap around, so one never disables while it has focus. A polite live region says which plaques are showing after each move.
What happens to the plaques that are off the page?
They are marked inert and hidden from assistive technology, so Tab and screen readers only meet the plaques you can see. Each slide is a group named by its programme, category and place in the list ("Mosswick Awards, Direct booking technology, 1 of 8").
Does it autoplay, and what about reduced motion?
No: it moves only when you press a button, a dot or an arrow key, so there is nothing to pause. The header fades up once on load; with reduced motion that, the dot's width change and the carousel's own slide are all off or instant, as far as the library allows.
Are these real awards?
No. Mosswick, Hobbsgrove, Whinbrook, Flaxmere, Heathermoor and Nutcombe are made-up programmes and Hostelry a made-up booking engine. The wreaths are drawn by the block, not copied from any award body. If you show a real award, name it in text and use its official badge only where its rules allow it.
Related
- 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.
- Pro
Dual Marquee Awards
Strips and bannersTwo rows of award pills moving in opposite directions, each with a drawn mark, the award, the programme and the year, and a visible pause button.
- 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
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.
- 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
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.