About
An interactive isometric illustration of a battery pack with four cells that charges and discharges when you press its button, with animated fill levels, a rolling percentage readout and sound.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Battery Stack to your project and fits it to your theme.
Code
How Battery Stack is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
import BatteryStack from "@/components/ui/battery-stack";
export default function BatteryStackDemo() {
return (
<div className="flex w-full h-screen items-center justify-center bg-background">
<div className="w-full max-w-md">
<BatteryStack />
</div>
</div>
);
}








