Skip to main content
Clever Ops

Build & Price Summary

A build-and-price recap panel with ledger discipline, base vehicle plus option rows in tabular figures and a drive-away total that counts to rest, deterministic and SSR-exact.

Preview & code

Loading Build & Price Summary preview

Installation

pnpm dlx shadcn@latest add @cleverui/build-price-summary

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

Usage

tsx
import { BuildPriceSummary } from '@/components/ui/build-price-summary'
Exampletsx
'use client'

import { BuildPriceSummary } from '@/components/ui/build-price-summary'

export default function BuildPriceSummaryDemo() {
  return (
    <div className="mx-auto flex max-w-md justify-center px-4 py-10 sm:px-6 sm:py-14">
      <BuildPriceSummary
        model="Hilux SR5 Double-Cab"
        basePrice={52990}
        options={[
          { label: 'Tow kit, 3,500 kg rated', price: 1250 },
          { label: 'Hard lid & sports bar', price: 2890 },
          { label: 'Premium paint, Graphite', price: 650 },
          { label: 'Floor liners & cargo tray', price: 0 },
        ]}
        currency="AUD"
        locale="en-AU"
      />
    </div>
  )
}

API reference

BuildPriceSummary accepts the following props.

PropTypeDefaultDescription
model*stringthe build heading, e.g. 'Hilux SR5 Double-Cab'
baseLabelstring'Base vehicle'label on the opening ledger row
basePrice*numbernumeric so the total can be computed, e.g. 52990
options*BuildPriceOption[]fitted options; price 0 prints 'Incl.'
currencystring'AUD'ISO code passed to Intl.NumberFormat
localestring'en-AU'explicit locale so server and client format identically
totalLabelstring'Drive-away total'
disclaimerstring'Estimate only. Final drive-away price confirmed by your dealer.'genuine fine print under the total

…plus everything from React.HTMLAttributes<HTMLElement>: className, event handlers, aria attributes and the rest pass straight through.

Referenced types

Typestsx
export interface BuildPriceOption {
  label: string
  price: number
}

Frequently asked questions

How do I install the Build & Price Summary component?

Register the @cleverui registry in your components.json ("@cleverui": "https://cleverops.com.au/r/{name}.json"), then run `npx shadcn@latest add @cleverui/build-price-summary`. 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 Build & Price Summary require?

Build & Price Summary uses motion on top of React and Tailwind CSS. You don't need to install it manually, the shadcn CLI resolves and installs npm dependencies automatically when you add the component.

Can I theme Build & Price Summary 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