BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/retab-ui/document-evidence

Document evidence

retab-ui/document-evidence
FreeComponent

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.json

Source

registry/new-york-v4/ui/document-evidence.tsui.retab.com/r/document-evidence.json
1import type { DocumentAnchor } from "./document-anchor";
2
3export type AnchorResolution =
4 | { status: "resolved"; anchor: DocumentAnchor }
5 | { status: "missing" }
6 | { status: "invalid"; reason: string };
7
8export type EvidenceAnchor = {
9 id: string;
10 anchor: AnchorResolution;
11};
12
13export type EvidenceItem<Payload> = EvidenceAnchor & {
14 payload: Payload;
15};
16
17export function resolvedEvidenceAnchor(
18 anchor: DocumentAnchor,
19): AnchorResolution {
20 return { status: "resolved", anchor };
21}
22
23export function missingEvidenceAnchor(): AnchorResolution {
24 return { status: "missing" };
25}
26
27export function invalidEvidenceAnchor(reason: string): AnchorResolution {
28 return { status: "invalid", reason };
29}

What it pulls in

Other registry items

  • @retab/document-anchor

Files it writes

  • registry/new-york-v4/ui/document-evidence.ts

Facts

Registry
retab-ui
Type
registry:ui
Access
Free
Files written
1
Licence
NOASSERTION
First indexed
2026-08-04
Last confirmed
today

Go to the source

ui.retab.com retab-dev/retab-ui on GitHub Raw registry item This item as JSON

More from retab-ui

All 130 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Alertalertretab-uiComponentsFree1 dep
Alert Dialogalert-dialogretab-uiComponentsFree1 dep
Aspect Ratioaspect-ratioretab-uiComponentsFreeno deps
Attachment Sidebarattachment-sidebarretab-uiComponentsFree1 dep
Autocompleteautocompleteretab-uiComponentsFree2 deps
Calendarcalendarretab-uiComponentsFree2 deps
Code Viewercode-viewerretab-uiComponentsFree2 deps · 32 files
Commandcommandretab-uiComponentsFree2 deps
BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex

BlockDex

Built by

Kynth Studio

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

BlockDex