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

Insight Cards

ProNew

Paged 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

PropTypeDefault
insights*Insight[]—
onFollowUp(insight: Insight) => void

Called when the follow-up chip is pressed.

—
classNamestring—

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.