terra vidhal

Car Configurator

Pricing

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>
  );
}

Dependencies

More by terra vidhal

View all
  • Project Timeline

    Project Timeline

    30
  • Kanban Board

    Kanban Board

    20
  • Gravity Stars Background

    Gravity Stars Background

    20
  • Booking Calendar

    Booking Calendar

    18
  • Notification Center

    Notification Center

    16
  • Audio Waveform

    Audio Waveform

    16
  • Kpi Counter

    Kpi Counter

    16
  • Topographic Lines

    Topographic Lines

    16

More in Pricing

View all
  • Executive Pricing Plan

    Executive Pricing Plan

    20
  • Pricing Section

    Pricing Section

    733
  • Pricing Section 1

    Pricing Section 1

    109
  • Single Pricing Card

    Single Pricing Card

    829
  • Review Stack Pricing

    Review Stack Pricing

    11
  • Toggleable Add-on Pricing

    Toggleable Add-on Pricing

    229
  • Toggle Pricing Cards

    Toggle Pricing Cards

    112
  • Pricing Card

    Pricing Card

    409

Explore more

Part of PrequelUI Animate — browse the full library on 21st.dev.