Skip to content
shadcn.io

shadcn.io is not affiliated with official shadcn/ui

Category Grid Awards Block for React

Sixteen 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.

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 category grid of awards for React with Base UI. Six cells share their hairlines in a 3 by 2 grid that runs rail to rail under a centred header with a tally counted from the list ("16 awards in 6 categories"). Each cell is a category (Product, Engineering, Design, Support, Security, Community) with a small line glyph drawn for it, its count in large figures and its two newest awards listed by name, programme and year; where there are more, the cell says how many ("And 2 more"). The category with the most awards is outlined and says so. Unlike a count-only tile, the awards are named; unlike a tabbed list, every category is visible at once. It's built from Guides, inline SVG and your theme's tokens, with a CSS transition for the entrance. The awards and programmes are made up for the example: replace them with your own.

FAQ

Where do the counts come from?

Everything is derived from one list, AWARDS: each award names its category, and each cell counts the awards with its category's name, lists the first two of them (the list is newest first within each category) and says how many more there are. The header's tally is the length of the list and the number of categories. Add an award and the count, the list and the outline update together.

How is the largest category chosen?

It is the category with the highest count; when two tie, the first in CATEGORIES wins. The outline is a ring inside the cell, and the cell also says "awards, the most", so the emphasis is never colour alone.

How do I change a category's glyph?

Each category in CATEGORIES has a glyph: a list of stroked paths in a 24 by 24 box, drawn with a 1.5 pixel round stroke in your theme's foreground. Replace the path strings, or add a category (the grid is three across from lg and two from sm, so keep the count a multiple of both, or the last row will leave a gap). Glyphs are hidden from assistive technology; the category is the heading.

Are these real awards?

No. Valedale, Wyvernhall, Zephyrcombe, Bramblewick, Brindlecombe, Corvethorpe and Dunmallow are made-up programmes and Routewell a made-up API. If you show a real award, name it in text and use its official badge only where its rules allow it.

How do screen readers read a cell?

The grid is a list named Award categories. Each cell gives the category as a heading, then its count ("4 awards, the most"), then a nested list of its newest awards, each with its name, then its programme and year, and a closing "And 2 more" where there are others. Each year sits in a bdi element so it keeps its place in a right-to-left layout.

How does it fit on a phone?

One column of six cells, each with the glyph and name at the start and the count at the end, with its two awards under a hairline. Nothing scrolls sideways at 320 pixels. From sm the cells run two across, and from lg three.

  • Pro

    Category Counts Awards

    Charts and figures

    Nine count tiles on shared hairlines for a sports-league manager: a drawn category glyph, the count in large type, its share of all awards and a bar scaled to the largest, with the largest outlined.

  • Pro

    Category Tabs Awards

    Filters and search

    Underline tabs by award category, each with a count, over a two-column grid of awards with a drawn mark in a frame, beside a split divider.

  • Pro

    Grid Awards

    Cards and grids

    Four 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

    Animated Grid Awards

    Cards and grids

    Six awards for a UI kit as links in a 3 by 2 hairline grid: hover or focus one cell and it lifts while the other five settle into a tint.

  • Pro

    Kanban Stages Awards

    Themed formats

    Three board columns, Entered, Shortlisted and Won, with count headers, an arrow showing the path and award cards that carry a drawn mark and a dated badge.

  • Pro

    Dense Badge Wall Awards

    Badges and seals

    A 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.