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.
Loading Source Map…
Usage
import { SourceMap } from "ui-kit/components/source-map";Props
| Prop | Type | Default | Description |
|---|---|---|---|
docs* | SourceDoc[] | — | — |
model* | { id: string; name: string; subtitle?: string; } | — | The model that reads them – its name and a line under it |
autoPlay | boolean | true | Fills the fields by itself and moves on to the next document – on by default; reduced motion shows them all |
selected | string | null | null | The 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 |
className | string | — | — |