Skip to main content
Clever Ops

Vehicle Inventory Card

A dealer listing card with spec-sheet discipline, structural silhouette panel, year-make-model heading, tabular price over an honest per-week finance line, and a km/transmission/fuel meta row.

Preview & code

Loading Vehicle Inventory Card preview

Installation

pnpm dlx shadcn@latest add @cleverui/vehicle-inventory-card

Requires the @cleverui registry in your components.json, a one-off, two-line setup.

Usage

tsx
import { VehicleInventoryCard } from '@/components/ui/vehicle-inventory-card'
Exampletsx
import { VehicleInventoryCard } from '@/components/ui/vehicle-inventory-card'

export default function VehicleInventoryCardDemo() {
  return (
    <div className="mx-auto flex max-w-sm justify-center px-4 py-10 sm:px-6 sm:py-14">
      <VehicleInventoryCard
        year="2022"
        make="Toyota"
        model="Hilux"
        variant="SR5 Double-Cab 4x4"
        price="$52,990"
        priceNote="Drive away"
        finance="From $182/wk · 9.49% comparison"
        odometer="48,200 km"
        transmission="Automatic"
        fuel="Diesel"
        status="just-arrived"
        href="#stock-hilux-sr5-2022"
      />
    </div>
  )
}

API reference

VehicleInventoryCard accepts the following props.

PropTypeDefaultDescription
year*stringmodel year opening the heading, e.g. '2022'
make*stringe.g. 'Toyota'
model*stringe.g. 'Hilux'
variantstringtrim line set muted after the heading
price*stringPREFORMATTED, e.g. '$52,990'
priceNotestring'Drive away'small qualifier beside the price
financestringPREFORMATTED per-week line, quiet, tabular
odometer*stringPREFORMATTED, e.g. '48,200 km'
transmission*stringe.g. 'Automatic'
fuel*stringe.g. 'Diesel'
statusVehicleStatus'none'ribbon over the silhouette panel
hrefstringwraps the card in a single anchor when provided

…plus everything from Omit< React.HTMLAttributes<HTMLElement>, 'onDrag' | 'onDragStart' | 'onDragEnd' | 'onAnimationStart' >: className, event handlers, aria attributes and the rest pass straight through.

Referenced types

Typestsx
export type VehicleStatus = 'just-arrived' | 'sold' | 'none'

Frequently asked questions

How do I install the Vehicle Inventory Card component?

Register the @cleverui registry in your components.json ("@cleverui": "https://cleverops.com.au/r/{name}.json"), then run `npx shadcn@latest add @cleverui/vehicle-inventory-card`. The shadcn CLI copies the source into your project, you own the code from that point. You can also copy the source directly from this page.

What dependencies does Vehicle Inventory Card require?

Vehicle Inventory Card uses motion and lucide-react on top of React and Tailwind CSS. You don't need to install them manually, the shadcn CLI resolves and installs npm dependencies automatically when you add the component.

Can I theme Vehicle Inventory Card to match my brand?

Yes. The component is styled entirely with Tailwind utilities over standard design tokens (primary, background, muted, border), so it inherits your existing shadcn/ui theme automatically. Change your CSS variables and the component follows, no source edits needed for palette, radius, or fonts.

Want this built for you?

CleverUI is built by the Clever Ops web team. If you'd rather ship a hand-coded, fast, custom website than assemble one, we build them for Australian businesses every week.

Explore web development services