Document evidence
retab-ui/document-evidenceFreeComponent
Pure projection types for semantic evidence rows that can resolve to document anchors.
Install it
npx shadcn@latest add https://ui.retab.com/r/document-evidence.jsonSource
1import type { DocumentAnchor } from "./document-anchor";23export type AnchorResolution =4 | { status: "resolved"; anchor: DocumentAnchor }5 | { status: "missing" }6 | { status: "invalid"; reason: string };78export type EvidenceAnchor = {9 id: string;10 anchor: AnchorResolution;11};1213export type EvidenceItem<Payload> = EvidenceAnchor & {14 payload: Payload;15};1617export function resolvedEvidenceAnchor(18 anchor: DocumentAnchor,19): AnchorResolution {20 return { status: "resolved", anchor };21}2223export function missingEvidenceAnchor(): AnchorResolution {24 return { status: "missing" };25}2627export function invalidEvidenceAnchor(reason: string): AnchorResolution {28 return { status: "invalid", reason };29}
What it pulls in
Other registry items
Files it writes
More from retab-ui
All 130 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Alertalert | retab-ui | Components | Free | 1 dep | |
| Alert Dialogalert-dialog | retab-ui | Components | Free | 1 dep | |
| Aspect Ratioaspect-ratio | retab-ui | Components | Free | no deps | |
| Attachment Sidebarattachment-sidebar | retab-ui | Components | Free | 1 dep | |
| Autocompleteautocomplete | retab-ui | Components | Free | 2 deps | |
| Calendarcalendar | retab-ui | Components | Free | 2 deps | |
| Code Viewercode-viewer | retab-ui | Components | Free | 2 deps · 32 files | |
| Commandcommand | retab-ui | Components | Free | 2 deps |
