Measured entry

8bitcn-leaderboard

tableskeuomorphism

A retro game leaderboard that sorts players by score, highlights podium entries and the current player, and renders avatars inside a pixel-framed card. It ships as a shadcn registry block and relies on React, Tailwind utilities, CVA, Radix avatar and separator primitives, shared UI components, and a Google-hosted retro font.

Specimen
Harness screenshot of 8bitcn-leaderboard at 375 pixels wide
Harness screenshot at 375 pixels wide. This viewport scrolled sideways.
Harness screenshot of 8bitcn-leaderboard at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of 8bitcn-leaderboard at 1440 pixels wide
Harness screenshot at 1440 pixels wide. No horizontal overflow recorded.

Measured

Every value below was written by the harness on the run that produced the frames above. None of it is derived from the prose.

Harness measurements recorded for 8bitcn-leaderboard
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowflagged at 375
Axe critical0
Axe serious0
Axe moderate0
Axe minor0
Gzip marginal36.5 KB (102.0 KB build, 65.5 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten from the component source API

What the harness recorded

BARE BUILD

✗ Build failed in 871ms
error during build:
[vite]: Rollup failed to resolve import "class-variance-authority" from "<sandbox>re-913fcb25d683/src/cut/components/ui/8bit/blocks/leaderboard.tsx".

Verdict

A credible drop-in for arcade-styled rankings: it builds and mounts cleanly, needs no provider, and exposes useful display options. Adopt it when the pixel treatment is intentional, but fix the in-place sort and narrow-layout overflow before using it with shared state or on phone-first screens.

Use it if

  • You need a compact score ranking for a game, contest, or community challenge.
  • Your interface already uses shadcn-style primitives and can absorb the component's opinionated pixel theme.
  • You want built-in controls for truncating the list, hiding avatars or ranks, and marking the current player.

Skip it if

  • The leaderboard must fit narrow phone layouts without responsive adjustments, since the tested render overflows there.
  • You need a semantic data table with sortable columns, headers, or dense analytical fields.
  • Your player array must remain immutable, because the component sorts the supplied array in place.
  • Your product cannot load the retro typeface from Google Fonts or does not match a pixel-art visual language.

Install

Installation record for 8bitcn-leaderboard
Declared dependenciesradix-ui, @radix-ui/react-separator, clsx, tailwind-merge
Missing on installnone
Bare installfails once the shadcn-style helpers are removed, so it needs that setup
Providerno provider required in the harness

In a non-shadcn project, add React and Tailwind, CVA, clsx with tailwind-merge for the cn helper, and the Radix avatar and separator primitives. Port the referenced card, avatar, badge, and separator components, configure the @ path alias and theme color tokens, and include the retro stylesheet or self-host an equivalent font.

Source and credit

This page is a review, not a copy. The component source lives with its author and this site does not republish it. Read the license before you use anything.

License
MIT
Record published
2026-08-16

Alternatives

Other published entries for the table pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.