Measured entry

8bitcn-enemy-health-display

cardskeuomorphism

A retro enemy status card that renders a name, optional level and health text, plus a segmented Radix progress bar. It ships as several registry files with a retro stylesheet and Google font import, and relies on Tailwind utilities, class-variance-authority, Radix Progress, path aliases, and a shadcn-style cn helper.

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

What the harness recorded

CONSOLE

Invalid prop `value` of value `NaN` supplied to `Progress`. The `value` prop must be:
  - a positive number
  - less than the value passed to `max` (or 100 if no `max` prop is set)

BARE BUILD

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

Verdict

A focused game HUD primitive with useful variants, but it needs a shadcn-style setup and some cleanup before production. The supplied empty demo produces an invalid progress value, and the progress bar lacks an accessible name. Use it as a themed starting point, not a finished drop-in.

Use it if

  • You need a game HUD element with configurable enemy data and a pixel-art treatment.
  • Your app already has shadcn-style aliases, utility classes, and the expected cn helper.
  • You are prepared to supply valid current and maximum health values and add an accessible label to the progress bar.

Skip it if

  • You need a standalone drop-in component with no project scaffolding or supporting files.
  • Your accessibility bar requires the progress indicator to be correctly named without modification.
  • You cannot load the external retro font or do not want the component to make a font request.
  • You need safe behavior when maximum health is zero or required health data is absent.

Install

Installation record for 8bitcn-enemy-health-display
Declared dependenciesnone declared
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 Tailwind styling, class-variance-authority, Radix Progress, a cn class-merging helper, and aliases matching the source imports. Copy the health bar, progress component, and retro stylesheet together, configure the font import, then pass valid health data and label the progress element for assistive technology.

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.