Tinted card that asks for one decision: kind of issue, what happened, one action.
Default
One thing that needs a decision: what kind of issue, what happened, and one action.
Overdue invoice
INV-045 · Patan Museum · $2,900 · 26 days late
Installation
Copies the component into src/design-system/ as your own source, with only the files it needs.
npx avesk-ui@latest add callout-cardBrings the 1 file it builds on (skeleton.tsx). The first time, it also adds the tokens and the cn() helper, imports the tokens in globals.css and installs clsx and tailwind-merge. Files already in your project are kept unless you add --force.
Import
Lives in src/design-system/components/callout-card.tsx.
import { CalloutCard, CalloutCardSkeleton } from "@/design-system/components/callout-card";Usage
<CalloutCard tone="red" label="Overdue invoice" action={<Link href="/finance" className={buttonClasses("md")}>Open invoices</Link>}>
INV-045 · Patan Museum · $2,900 · 26 days late
</CalloutCard>Examples
Needs your attention
The Home section: a heading over a list of cards, one tone per kind of issue.
Needs your attention
Overdue invoice
INV-045 · Patan Museum · 26 days late
Effort at 86%
Bodhi Yoga brand refresh · 4th revision round
Awaiting approval
Denzing website · approval link sent yesterday
Tones
Six tints. Red for late money, yellow for effort or risk, purple for waiting on a client.
red
Brand refresh for Denzing
yellow
Brand refresh for Denzing
purple
Brand refresh for Denzing
blue
Brand refresh for Denzing
emerald
Brand refresh for Denzing
neutral
Brand refresh for Denzing
Loading
CalloutCardSkeleton keeps the same frame so nothing jumps when the cards arrive.
When to use
Use it when
- A short list of things someone must act on, like Home's "Needs your attention"
Rules
- One action per card, as a secondary button or a link styled with buttonClasses
- Tone says the kind of issue: red money late, yellow effort or risk, purple waiting on a client
- Use CalloutCardSkeleton while loading so nothing jumps
Properties
CalloutCard
| Prop | Type | Default |
|---|---|---|
tone | "red" | "yellow" | "purple" | "blue" | "emerald" | "neutral" | "neutral" |
label * | string | – |
children * | ReactNode | – |
action | ReactNode | – |
className | string | – |
* required
Accessibility
- The label is text, not colour alone
- Put cards in a list (ul/li) under a heading
Related
Used in the Avesk app: Dashboard.