Kaupvik KeelKaupvik Keel
Open Source · v0.7.2

Mapping table

Review field mapping in small categories and source examples.

Interactive example

Loading Polaris web components…

Usage

<MappingTable groups={fieldGroups} fields={fields} columns={headers} mapping={mapping} examples={sourceRow} onChange={setMapping} />

Properties

PropertyTypeDefaultDescription
groups{title,icon,fields}[]RequiredRoughly 5–7 related fields per category.
fieldsRecord<string,string>RequiredDestination IDs and labels.
columnsstring[]RequiredReal uploaded headers.
mappingRecord<string,string>RequiredControlled assignments.
examplesRecord<string,unknown>—First actual source row.
onChange(mapping)=>voidRequiredUpdates source only.
targetLabelstringTarget schema fieldDestination field column heading.

Design & interaction

Review categories through disclosure. Show destination, source column and a real example. Mapping never writes native business records. Use native chevron and arrow icons in fixed, centered columns. Preserve the source-to-field alignment when categories expand.

Accessibility

Native disclosure and labeled selects. Logical keyboard order; examples hide on narrow screens.

Open-source source

Available in github.com/Kaupvik/kaupvik-polaris ↗. Host apps supply authentication, native persistence, and read-back state.