Xzero UI
Pro library

Media playerPro

An audio player with a living playlist and complete playback controls.

$ pnpm dlx shadcn@4.23.0 add @xzero-ui-pro/media-player
Live · keyboard ready

Use this for an audio collection where people need clear transport, progress, and volume controls. Replace the sample local loops with your media.

When to use

When not to use

Installation

Register both Xzero UI namespaces in your project's components.json:

{
  "registries": {
    "@xzero-ui": "https://mcp.xzero.co.uk/r/{name}.json",
    "@xzero-ui-pro": "https://mcp.xzero.co.uk/r/pro/{name}.json"
  }
}
npx shadcn@4.23.0 add @xzero-ui-pro/media-player

Install xzero-foundation once, and import @/components/xzero/foundation.css in your app root. No Xzero token is used by this snapshot. For sample portraits, photos, fonts, or logos, download https://mcp.xzero.co.uk/install-assets.mjs and run node xzero-install-assets.mjs <receiving-project>.

Usage

import { MediaPlayerBlock } from "@/components/xzero/blocks/media-player/media-player";

export function Listen() {
  return <MediaPlayerBlock />;
}

API reference

MediaPlayerBlock

An audio player with cover art, a three-track playlist, seek bar, skip, and volume with mute. Takes no props; the tracks are short loops synthesized in the browser as WAV blobs, and covers come from lib/media photos.

No props.

Keyboard interactions

KeysAction
Arrow keysAdjust seek position and volume on the focused range inputs.

Accessibility

Motion

Responsive behavior

Performance

Notes for AI

Guidance for AI tools

Blocks are complete, self-contained screens with sample data. Replace the sample data and connect the callbacks described above. Follow the declared prop types and do not invent props. Keep keyboard access, reduced motion support, and both light and dark themes intact when adapting it.

Full library index: https://ui.xzero.co.uk/llms.txt

Browse all components