Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Recognition Sidebar Awards Block for React Aria

A page excerpt with a recognition sidebar: an article about a knowledge-base tool taking two thirds and an aside beside it listing five awards with a drawn mark, the programme and the year.

Framework
UI library

Preview

Preview width

Installation

Part of Pro
Pro unlocks the code and one-line install of every Pro button and text effect, plus the MCP for your AI editor.
Have Pro already? Sign in to open it.Opens here as soon as you're Pro.

Overview

A recognition sidebar for React with React Aria, shown the way a visitor meets it: beside content. From lg, two thirds hold an article (a heading and two short paragraphs about the product) and the last third is an aside named Recognition, set off by a divider that carries a + mark where it meets the top rule. In it a stacked list of five awards: a small drawn mark (strokes only), the award, its programme under it and the year at the end. On a phone the aside follows the article under a rule. It is built from Guides, inline SVG and your theme's tokens, with a CSS transition for the entrance. The product text, awards and programmes are made up for the example: replace them with your own page.

FAQ

How do I put it beside my own content?

Replace the article's heading and paragraphs with your page's. The grid is lg:grid-cols-[minmax(0,2fr)_minmax(0,1fr)], so anything you put in the first cell gets two thirds. Keep the aside as the second child so it follows the text on a phone.

How many awards fit?

Four or five, one line each. A sidebar this narrow has no room for descriptions, which is why each row has only the award, its programme and the year.

How is it labelled for screen readers?

The aside is a complementary landmark named "Recognition" and holds a list; each award is a h3 with its programme under it. The drawn marks are hidden from assistive technology, and the page heading above is the block's h2.

Can I use other marks?

Add a shape to SHAPES (strokes in a 24 by 24 box) and name it in an award's shape. The set includes a laurel, a star, a medal, a cup and a rosette.

Are these real awards?

No. Oswin and the Basaltbrook programmes are invented for the example.

How does it fit on a phone?

The article comes first, then a rule and the aside, each row keeping its mark, text and year. Nothing scrolls sideways at 320 pixels.