Skip to Content
UI Kit
Components (172)

Source Map

Source Map — what a model pulled out of a document, and where each value came from, in a single self-contained file.

Open preview
Loading Source Map…

Usage

import { SourceMap } from "ui-kit/components/source-map";

Props

PropTypeDefaultDescription
docs*SourceDoc[]——
model*{ id: string; name: string; subtitle?: string; }—The model that reads them – its name and a line under it
autoPlaybooleantrueFills the fields by itself and moves on to the next document – on by default; reduced motion shows them all
selectedstring | nullnullThe field picked – it stays lit, and the document stays
onSelect(field: SourceField, doc: SourceDoc) => void—A click on a field – to open it, check where it came from or mark it wrong
onFill(count: number, doc: SourceDoc) => void—Each time a field fills – how many are there now; all of them at once under reduced motion
classNamestring——

On this page