Skip to main content
Clever Ops

Suburb Report Card

A suburb market snapshot, median price counting up in big tabular figures, a 12-month delta chip, ruled days-on-market and clearance rows, and a mono data-as-of provenance note.

Preview & code

Loading Suburb Report Card preview

Installation

pnpm dlx shadcn@latest add @cleverui/suburb-report-card

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

Usage

tsx
import { SuburbReportCard } from '@/components/ui/suburb-report-card'
Exampletsx
import { SuburbReportCard } from '@/components/ui/suburb-report-card'

export default function SuburbReportCardDemo() {
  return (
    <div className="mx-auto flex max-w-sm justify-center px-4 py-10 sm:px-6 sm:py-14">
      <SuburbReportCard
        suburb="Kew"
        context="VIC 3101 · Houses"
        medianPrice={2410000}
        pricePrefix="$"
        medianLabel="Median sale price"
        deltaPct={4.2}
        deltaLabel="past 12 months"
        rows={[
          { label: 'Median days on market', value: '24' },
          { label: 'Auction clearance', value: '71%' },
          { label: 'Sales this quarter', value: '38' },
          { label: 'Vendor discount', value: '2.1%' },
        ]}
        asOf="Data to Jun 2026 · agency reported"
      />
    </div>
  )
}

API reference

SuburbReportCard accepts the following props.

PropTypeDefaultDescription
suburb*stringthe heading, e.g. Kew
contextstringstate and property-type line, e.g. VIC 3101 · Houses
medianPrice*numberfinal median as a number, counts up once in view
pricePrefixstring'$'
medianLabelstring'Median sale price'
deltaPctnumbersigned 12-month change, e.g. 4.2 or -1.8
deltaLabelstring'past 12 months'
rows*SuburbReportRow[]
asOfstringpreformatted provenance, never derived from Date in render

…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 interface SuburbReportRow {
  label: string
  value: string
}

Frequently asked questions

How do I install the Suburb Report 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/suburb-report-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 Suburb Report Card require?

Suburb Report 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 Suburb Report 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