Skip to content
ProLifetime access for $199, paid once, every future release included
Truffle UI

Lead Score

ProNew

A score in a ring that fills when it appears, with Hot, Warm or Cold beside it. Pressing it lists what added and took away points.

Installation

pnpm dlx shadcn@latest add @viewport/lead-score

First time? Add the @viewport registry to components.json. Setup takes one minute.

Usage

The code behind the preview above comes with Truffle Pro.

Props

PropTypeDefault
score*number

The score, from 0 to 100.

—
factors{ label: string; points: number }[]

What moved the score, each with its points. Shown when the score is pressed.

—
warmAtnumber

The scores at which a lead counts as warm and as hot.

40
hotAtnumber70
size"sm" | "md""md"
classNamestring—

Accessibility

  • Named with the score, its scale and its band.
  • The band is a word as well as a color.
  • The reasons open in a popover from a button, not on hover.
  • The ring is shown filled under reduced motion.