Skip to main content
Clever Ops

Finance Repayment Panel

A dealership finance estimator in React, deposit stepper, term radiogroup and frequency toggle drive a Tailwind-set repayment figure that counts to rest, with honest fine print.

Preview & code

Loading Finance Repayment Panel preview

Installation

pnpm dlx shadcn@latest add @cleverui/finance-repayment-panel

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

Usage

tsx
import { FinanceRepaymentPanel } from '@/components/ui/finance-repayment-panel'
Exampletsx
'use client'

import { FinanceRepaymentPanel } from '@/components/ui/finance-repayment-panel'

export default function FinanceRepaymentPanelDemo() {
  return (
    <div className="mx-auto flex max-w-md justify-center px-4 py-10 sm:px-6 sm:py-14">
      <FinanceRepaymentPanel
        heading="Finance your build"
        vehicle="2025 Hilux SR5 Double-Cab"
        price={61990}
        rate={8.99}
        comparisonRate={9.62}
        terms={[36, 48, 60, 84]}
        initialTerm={60}
        initialDeposit={5000}
        depositStep={1000}
        initialFrequency="weekly"
        currency="AUD"
        locale="en-AU"
        ctaLabel="Get pre-approved"
        href="#pre-approval"
      />
    </div>
  )
}

API reference

FinanceRepaymentPanel accepts the following props.

PropTypeDefaultDescription
headingstring'Finance your build'
vehiclestringcontext line, e.g. '2025 Hilux SR5 Double-Cab'
price*numberdrive-away price the estimate is built on, e.g. 61990
rate*numberannual rate percent, e.g. 8.99
comparisonRatenumberprinted beside the rate as '9.62% comparison'
termsnumber[]DEFAULT_TERMSterm choices in months
initialTermnumber60months preselected on first render
initialDepositnumber5000
depositStepnumber1000stepper increment; decrement disables (never hides) at zero
initialFrequencyFinanceFrequency'weekly'period count and per-period rate derive from this choice
currencystring'AUD'ISO code passed to Intl.NumberFormat
localestring'en-AU'explicit locale so server and client format identically
onQuote(quote: FinanceQuote) => voidreports each new estimate; the panel owns its own selection state
ctaLabelstring'Get pre-approved'
hrefstringrenders the CTA as an anchor instead of a button
disclaimerstring'Estimate only. Not an offer of finance. Fees, charges and lending criteria apply.'genuine fine print under the CTA

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

Referenced types

Typestsx
export type FinanceFrequency = 'weekly' | 'fortnightly' | 'monthly'

export interface FinanceQuote {
  deposit: number
  term: number
  frequency: string
  repayment: number
}

Frequently asked questions

How do I install the Finance Repayment Panel component?

Register the @cleverui registry in your components.json ("@cleverui": "https://cleverops.com.au/r/{name}.json"), then run `npx shadcn@latest add @cleverui/finance-repayment-panel`. 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 Finance Repayment Panel require?

Finance Repayment Panel 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 Finance Repayment Panel 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