Skip to main content
Clever Ops

Rate Comparison Sheet

Home loan rate comparison rows in React, advertised and comparison rates paired in tabular numerals with the statutory warning as first-class Tailwind copy. Disclosure-forward, zero urgency.

Preview & code

Loading Rate Comparison Sheet preview

Installation

pnpm dlx shadcn@latest add @cleverui/rate-comparison-sheet

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

Usage

tsx
import { RateComparisonSheet } from '@/components/blocks/rate-comparison-sheet'
Exampletsx
'use client'

import { RateComparisonSheet } from '@/components/blocks/rate-comparison-sheet'

export default function RateComparisonSheetDemo() {
  return (
    <RateComparisonSheet
      eyebrow="Home loans"
      heading="Compare our rates"
      intro="Every rate below is current as at 1 July 2026 and shown beside its comparison rate."
      products={[
        {
          name: 'Variable Rate Home Loan',
          summary:
            'A flexible owner-occupier loan with offset and redraw. Rate moves with the market.',
          rate: '5.99%',
          comparisonRate: '6.08%',
          features: ['Offset', 'Redraw', 'No annual fee'],
          cta: { label: 'Apply', href: '#variable' },
        },
        {
          name: 'Fixed Rate Home Loan',
          summary:
            'Lock your rate for three years. Extra repayments limited during the fixed term.',
          rate: '5.69%',
          comparisonRate: '6.21%',
          features: ['3-year fixed', 'Portable', 'Split available'],
          cta: { label: 'Apply', href: '#fixed' },
          emphasized: true,
        },
        {
          name: 'Investment Variable',
          summary:
            'For residential investment properties. Interest-only options available subject to criteria.',
          rate: '6.19%',
          comparisonRate: '6.28%',
          features: ['Interest-only option', 'Redraw', 'Online redraw'],
          cta: { label: 'Apply', href: '#investment' },
        },
      ]}
      disclosure="Comparison rates are based on a $150,000 loan over 25 years. WARNING: This comparison rate is true only for the example given and may not include all fees and charges. Different terms or amounts may result in a different comparison rate."
    />
  )
}

API reference

RateComparisonSheet accepts the following props.

PropTypeDefaultDescription
eyebrowstring'Home loans'quiet sans micro-label, sober, never a colored pill
headingstring'Compare our rates'
introstringone plain sentence
rateLabelstring'Interest rate p.a.'
comparisonRateLabelstring'Comparison rate p.a.'
products*RateComparisonProduct[]
emphasisLabelstring'Most chosen'real-text label on the emphasized row
disclosurestring'Comparison rates are based on a $150,000 loan over 25 years. WARNING: This comparison rate is true only for the example given and may not include all fees and charges. Different terms or amounts may result in a different comparison rate.'statutory warning as genuine full-size copy

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

Referenced types

Typestsx
export interface RateComparisonProduct {
  name: string
  summary?: string
  /** PREFORMATTED, e.g. '5.89%', never computed */
  rate: string
  /** PREFORMATTED comparison rate, never computed */
  comparisonRate: string
  features?: string[]
  cta?: { label: string; href: string }
  /** at most one emphasized: true */
  emphasized?: boolean
}

Frequently asked questions

How do I install the Rate Comparison Sheet component?

Register the @cleverui registry in your components.json ("@cleverui": "https://cleverops.com.au/r/{name}.json"), then run `npx shadcn@latest add @cleverui/rate-comparison-sheet`. 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 Rate Comparison Sheet require?

Rate Comparison Sheet 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 Rate Comparison Sheet 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