Measured entry
ruixen-music-player-card
badgeunclassifiedmotion on file
A client-side React music player card with album art, native browser audio playback, seeking, track navigation, shuffle, repeat, and social action controls. It ships as a shadcn registry component styled with Tailwind theme tokens, using Lucide icons and a shared cn utility.



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.
| Build | OK |
|---|---|
| Mount | OK |
| Console errors | 1 |
| Uncaught page errors | 0 |
| Horizontal overflow | clean at 375, 768, 1440 |
| Axe critical | 0 |
| Axe serious | 1 |
| Axe moderate | 0 |
| Axe minor | 0 |
| Gzip marginal | 33.1 KB (98.6 KB build, 65.5 KB baseline) |
| Bare mode | FAIL |
| Provider required | NO |
| Demo used | written from the component source API |
What the harness recorded
CONSOLE
Failed to load resource: the server responded with a status of 404 (Not Found)
BARE BUILD
✗ Build failed in 1m 32s error during build: [vite:load-fallback] Could not load <sandbox>/src/lib/utils (imported by src/cut/components/ruixen/music-player-card.tsx): ENOENT: no such file or directory, open '<sandbox>/src/lib/utils'
Verdict
A credible visual starter with working core playback and responsive mounting, but not a finished media experience. It needs a shadcn-style setup, accessibility fixes, application wiring for social actions, and a repeat-state correction before production use.
Use it if
- You need a compact playlist player that accepts track metadata and audio URLs through props.
- Your app already uses Tailwind theme tokens and a shadcn-style cn utility.
- You are prepared to connect the save, share, rating, and comment actions to your own product logic.
Skip it if
- You need an accessible player without remediation, since muted controls fail contrast checks and the seek control lacks keyboard semantics.
- You expect every visible social control to work out of the box; several are decorative or have no handler.
- You need hardened playback state, since repeat changes are not reflected by the active audio end handler until the track changes.
- You cannot guarantee valid cover and audio URLs or handle remote media failures.
Install
| Declared dependencies | lucide-react, clsx, tailwind-merge |
|---|---|
| Missing on install | none |
| Bare install | fails once the shadcn-style helpers are removed, so it needs that setup |
| Provider | no provider required in the harness |
In a non-shadcn project, add Tailwind CSS, Lucide React, clsx, and tailwind-merge; define the referenced card, border, foreground, background, and muted theme tokens; create the aliased shared cn helper or replace that import; and ensure the component runs on the client. Configure your image and media policy for the supplied remote sources.
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.
Author repository
github.com/ruixenui/ruixen.comAlternatives
Other published entries for the badge pattern, ordered by what they measured: mounts first, then clean axe scans, then bare-mode passes, then the smaller bundle.
- neu-badgeneumorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 17.5KB
- Bare
- pass
- Prov
- NO
- clay-badgeclaymorphism
- Renders
- YES
- A11y
- 0
- Gzip
- 17.9KB
- Bare
- pass
- Prov
- NO
- ruixen-load-rippleunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 17.9KB
- Bare
- pass
- Prov
- NO
- kibo-listminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 42.4KB
- Bare
- pass
- Prov
- NO
- ruixen-blurred-stagger-textunclassified
- Renders
- YES
- A11y
- 0
- Gzip
- 58.1KB
- Bare
- pass
- Prov
- NO
- tripled-auto-revealing-heading-shadcnuiminimal-flat
- Renders
- YES
- A11y
- 0
- Gzip
- 58.3KB
- Bare
- pass
- Prov
- NO