Chun Keat Lim

Portable CD Player

Component 1

About

Top-loading retro CD player in real CSS 3D. Click the disc to play: it spins up, the laser sled tracks and the LCD counts. Hinged lid, working keys, draggable volume dial, wood side block and fully customizable colours.

Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Portable CD Player to your project and fits it to your theme.

Code

How Portable CD Player is used: the demo's code. The component's own source comes with a free account.

Usage.tsx

"use client";

import { PortableCdPlayer } from "@/components/ui/portable-cd-player";

const settings = {
  bodyColor: "#1C1C1E",
  woodColor: "#B07A45",
  lidColor: "#CECAC3",
  accentColor: "#E8692C",
  lcdColor: "#EAF2FF",
  discPrintColor: "#1E1E22",
  brandName: "CLEF",
  modelName: "D-90",
  discTitle: "Late Night Sessions",
  speed: 1,
  size: 640,
  lidOpen: true,
  showDisc: true,
  tilt: true,
  autoPlay: false,
  clickSound: true,
};

export default function Demo(props: Partial<typeof settings>) {
  const s = { ...settings, ...props };
  return <PortableCdPlayer {...s} className="min-h-screen" />;
}

More by Chun Keat Lim

View all
  • Translucent Cassette Player

    Translucent Cassette Player

    54
  • Chroma Sense Hero

    Chroma Sense Hero

    7
  • Ink Grid Hero

    Ink Grid Hero

    4
  • Turntable

    Turntable

    2
  • DJ Controller

    DJ Controller

    1
  • Pocket Cassette Player

    Pocket Cassette Player