Insight Cards
ProNewPaged agent insight cards with a scrub-ready sparkline, delta metrics, and one-click follow-up prompts.
Installation
pnpm dlx shadcn@latest add @viewport/insight-cards
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
| Prop | Type | Default |
|---|---|---|
| insights* | Insight[] | — |
| onFollowUp | (insight: Insight) => voidCalled when the follow-up chip is pressed. | — |
| className | string | — |
Accessibility
- The sparkline is a focusable role=slider supporting Left/Right arrows and Escape.
- Card navigation announces the current page through a polite live region.
- Slide transitions and path draw disable under reduced motion.