Measured entry

8bitcn-health-bar

cardskeuomorphism

A React health meter that wraps a reusable Radix Progress primitive with a red fill, blocky border treatment, and an optional segmented retro variant. It ships as a shadcn registry component with its shared progress file and retro stylesheet, and relies on Tailwind utilities, class-variance-authority, a cn helper, Radix Progress, and an imported Google font.

Specimen
Harness screenshot of 8bitcn-health-bar at 375 pixels wide
Harness screenshot at 375 pixels wide. No horizontal overflow recorded.
Harness screenshot of 8bitcn-health-bar at 768 pixels wide
Harness screenshot at 768 pixels wide. No horizontal overflow recorded.
Harness screenshot of 8bitcn-health-bar 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-health-bar
BuildOK
MountOK
Console errors0
Uncaught page errors0
Horizontal overflowclean at 375, 768, 1440
Axe critical0
Axe serious1
Axe moderate0
Axe minor0
Gzip marginal29.7 KB (95.1 KB build, 65.4 KB baseline)
Bare modeFAIL
Provider requiredNO
Demo usedwritten from the component source API

What the harness recorded

BARE BUILD

✗ Build failed in 53.48s
error during build:
[vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/components/ui/8bit/progress.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'

Verdict

A focused pixel-art health meter with clean responsive behavior and useful visual variants. It needs a shadcn-style setup, and the missing accessible name should be fixed before production use, but it is a reasonable fit for game-like interfaces already using that stack.

Use it if

  • You need a game health or status meter that already matches a pixel-art interface.
  • Your app uses shadcn conventions and can reuse the included progress primitive.
  • You want both a continuous red meter and an optional segmented retro treatment.

Skip it if

  • You need an accessible default without adding a label, since the rendered progressbar has no accessible name.
  • Your design cannot load the external Press Start font from Google.
  • You want a neutral progress component rather than a health-specific red wrapper.
  • Your project does not use Tailwind or shadcn-style aliases and you do not want to adapt the source.

Install

Installation record for 8bitcn-health-bar
Declared dependencies@radix-ui/react-progress
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 Radix Progress and class-variance-authority, provide a compatible cn utility and import alias, configure Tailwind for the component classes, include the retro stylesheet, and decide whether to keep or self-host the Google font. Also pass an accessible label to the progress root.

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-14

Alternatives

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