Deal Card
ProNewA deal on a pipeline board: value, owner, close date, the next step, and a warning when it is overdue or has gone quiet. The chance of closing runs along the bottom edge.
Installation
First time? Add the @viewport registry to components.json. Setup takes one minute.
Usage
Props
| Prop | Type | Default |
|---|---|---|
| title* | stringThe deal's name. | — |
| href | stringMakes the name a link to the deal. | — |
| company* | string | — |
| value* | stringThe amount, already formatted, e.g. "$48,000". | — |
| owner | { name: string; src?: string }Who owns the deal. Their avatar is shown, with their name for screen readers. | — |
| closeDate | stringThe expected close date, already formatted. | — |
| overdue | booleanThe close date has passed. It is marked in color and in words. | — |
| probability | numberThe chance of winning, from 0 to 100. | — |
| nextStep | stringWhat happens next, e.g. "Send the security questionnaire". | — |
| stale | stringA warning that nothing has happened for a while, e.g. "No activity for 12 days". | — |
| tags | string[] | — |
| actions | React.ReactNodeA menu or buttons in the top corner. | — |
| lifted | booleanThe card is being moved: it lifts and tilts slightly. | — |
Accessibility
- An article named with the deal, the company and the value.
- Overdue and stale are written out as well as colored.
- The probability is also text for screen readers.
- The whole card is the link's target, with actions kept above it.