About
A vehicle configurator with live SVG preview, trim, paint, wheel and package steps, a keyboard tablist, an animated running total, a breakdown summary and a saved build reference.
Built with React and Tailwind. Copy the prompt and paste it into Claude Code, Cursor or Lovable: your agent adds Car Configurator to your project and fits it to your theme.
Code
How Car Configurator is used: the demo's code. The component's own source comes with a free account.
Usage.tsx
"use client";
/**
* PrequelUI Animate — MIT — https://prequeluianimate.terravidhal.me
*/
import {
CarConfigurator,
type CarPackage,
type CarPaint,
type CarTrim,
type CarWheel,
} from "@/components/ui/car-configurator";
const TRIMS: CarTrim[] = [
{ id: "standard", name: "Standard", price: 0, range: "410 km", power: "170 kW", seats: 5, drive: "Rear drive" },
{ id: "long-range", name: "Long Range", price: 6000, range: "540 km", power: "210 kW", seats: 5, drive: "Rear drive" },
{ id: "performance", name: "Performance", price: 11000, range: "505 km", power: "310 kW", seats: 5, drive: "All-wheel drive" },
];
const PAINTS: CarPaint[] = [
{ id: "glacier", name: "Glacier", hex: "#e4e4e7", price: 0 },
{ id: "graphite", name: "Graphite", hex: "#3f3f46", price: 700 },
{ id: "forest", name: "Forest", hex: "#2f5d50", price: 900 },
{ id: "copper", name: "Copper", hex: "#b45309", price: 1100 },
{ id: "sky", name: "Coastal", hex: "#0e7490", price: 900 },
{ id: "midnight", name: "Midnight", hex: "#1e293b", price: 1100 },
];
const WHEELS: CarWheel[] = [
{ id: "aero", name: "Aero", size: 18, price: 0 },
{ id: "mesh", name: "Mesh", size: 19, price: 1200 },
{ id: "sport", name: "Sport", size: 20, price: 2100 },
];
const PACKAGES: CarPackage[] = [
{ id: "assist", name: "Driver assist", detail: "Adaptive cruise, lane centring and parking sensors.", price: 1800 },
{ id: "comfort", name: "Comfort seats", detail: "Heated front seats, power lumbar and memory.", price: 1200 },
{ id: "audio", name: "Studio audio", detail: "Twelve speakers with active noise control.", price: 1500 },
{ id: "tow", name: "Tow package", detail: "Hidden hitch, trailer wiring and cooling upgrade.", price: 900 },
];
export default function CarConfiguratorDemo() {
return (
<main className="flex min-h-screen w-full items-start justify-center bg-gradient-to-b from-muted/40 via-background to-background px-4 py-8 sm:px-6">
<CarConfigurator
model="Arc One"
basePrice={32000}
trims={TRIMS}
paints={PAINTS}
wheels={WHEELS}
packages={PACKAGES}
/>
</main>
);
}
















