Skip to main content
Clever Ops

Agent Profile Card

An agent card that sells with proof, portrait placeholder, sold count and median days-on-market ticking up in tabular figures, suburbs served as chips, and an appraisal CTA.

Preview & code

Loading Agent Profile Card preview

Installation

pnpm dlx shadcn@latest add @cleverui/agent-profile-card

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

Usage

tsx
import { AgentProfileCard } from '@/components/ui/agent-profile-card'
Exampletsx
import { AgentProfileCard } from '@/components/ui/agent-profile-card'

export default function AgentProfileCardDemo() {
  return (
    <div className="mx-auto flex max-w-sm justify-center px-4 py-10 sm:px-6 sm:py-14">
      <AgentProfileCard
        name="Claire Whitmore"
        jobTitle="Principal"
        agency="Whitmore & Co."
        stats={[
          { label: 'Sold this year', value: 128 },
          { label: 'Median days on market', value: 21 },
          { label: 'Career sales', value: 412, prefix: '$', suffix: 'm' },
        ]}
        suburbs={['Hawthorn', 'Kew', 'Camberwell', 'Canterbury', 'Balwyn']}
        ctaLabel="Request an appraisal"
        href="#appraisal"
      />
    </div>
  )
}

API reference

AgentProfileCard accepts the following props.

PropTypeDefaultDescription
name*string
jobTitlestring'Sales Agent'
agencystring
stats*AgentStat[]2–3 proof numbers, sold count, median days on market, career sales
suburbsstring[]suburbs served, rendered as hairline chips
ctaLabelstring'Request an appraisal'
hrefstringCTA renders as an anchor when set
onContact() => voidCTA renders as a button when set and href is absent

…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 AgentStat {
  label: string
  value: number
  prefix?: string
  suffix?: string
}

Frequently asked questions

How do I install the Agent Profile 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/agent-profile-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 Agent Profile Card require?

Agent Profile Card 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 Agent Profile 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