Insight cards
Paged insights: header with count and prev / next, summary, stats, a trend snapshot (line plot) or an allocation breakdown with selectable segments, and a follow-up prompt.
Preview
Use the controls to explore the component's props.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
insights (required) | IInsight[] | — | summary, stats (IStatProps[]), snapshot { data, series }, allocation { label, value, initials, segments[] }, followUp. |
index / defaultIndex / onIndexChange | number | — | Which insight is shown. |
onFollowUp | (text) => void | — | Follow-up pill. |
Example
Insights3
Lexicon coverage of the Iliad passed the Odyssey this week — 79% of tokens now resolve to a lemma.
Iliad79%+5 pts
Odyssey72%+2 pts
import { InsightCards, InsightEntity } from "@exegia/corpora-ui"
<InsightCards insights={[{ summary: <>Worst performer in <InsightEntity>Creamery</InsightEntity>…</>, stats: [...], snapshot: { data, series } }]} />Last updated on