Context cards
Retrieved chunks: header with a count pill, then a card per chunk with title, character count, snippet and the source file pill.
Preview
Use the controls to explore the component's props.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
cards (required) | IContextCard[] | — | title, meta, snippet, file { name, type }. |
header / count | ReactNode | — | Defaults to All chunks and cards.length. |
onOpen | (card, index) => void | — | File pill click. |
Example
All chunks32
import { ContextCards } from "@exegia/corpora-ui"
<ContextCards
count={32}
cards={[
{
title: "Vendor onboarding rule",
meta: "290 characters",
snippet: "…",
file: { name: "SOP.pdf", type: "PDF" },
},
]}
/>Last updated on
Recommendation card
Human-in-the-loop proposal: title, description with entity and lead-time pills, other options with signal bars, confidence and Accept / Alternatives.
Code block
Code card with filename, Code | Diff toggle and Copy; gutter line numbers and keyword / string tinting from the --code-* tokens. No highlighter dependency.