Launch priceOne payment

Evidence Map

Claims on one side, sources on the other, and a line for every link: solid for supports, dashed red for contradicts, dotted for context. Select one to light its links and read the notes, filter by relation, review a claim's status, and switch to a list view, which narrow screens get by default.

Ready for AI tools one file typed props installs by name prompt included

The decision inside it

A link is a citation, not proof

Links drawn by a model are labelled unchecked, review status is kept separate from the links, and the copy never says a source proves a claim.

Installation

How you get it

Paste this into Claude Code, Cursor, Codex or any coding agent. It installs the file and uses it as it is, instead of writing a new one.

Use Layro's Evidence Map for this.
Install it: npx shadcn@latest add @layro/evidence-map
Import it from @/components/ui/evidence-map.
Do not rewrite or restyle it. Pass my data through its props
and keep its built-in states.

For the full brief with every prop and the mistakes assistants usually make, use Copy prompt above. Pro components install through the @layro registry with your CLI token: see the Namespaced tab.

API

“Copy prompt” above puts a full brief on your clipboard — install command, dependencies, props, and the mistakes an assistant usually makes with this component.

Props

Read from the component’s own TypeScript interface when the site is built, so this table cannot drift from the file you install.

PropTypeNotes
nodesrequiredEvidenceNode[]—
edgesrequiredEvidenceEdge[]—
selectedNodeIdstring | null—
defaultSelectedNodeIdstring | null—
onNodeSelect(node: EvidenceNode | null) => void—
onOpenSource(node: EvidenceNode) => voidOpen a source yourself. Without it, an http(s) `sourceUrl` opens in a new tab.
onStatusChange(claimId: string, status: EvidenceStatus) => void | Promise<void>Adds review buttons to claims. May return a promise.
layout"map" | "list"`map` or `list`. The map turns into the list below 640px wide.
linkedBy"model" | "human"Who drew the links. Default "model": the details then say they are unchecked.

Dependencies

npm packages

clsxframer-motionlucide-reacttailwind-merge

Layro foundations, installed alongside it

layro-themebadgebuttonsegmented-controlstate

Lifetime access

Every component, and everything we ship next.

  • All 112 components, source included
  • The template, and everything released after you buy
  • shadcn CLI or download — React 18/19, Tailwind v4
  • One payment. No subscription.

More in RAG & Evals

All RAG & Evals components