Velocity X Components

Standard Data

Import Column Mapper

Lets people map columns from an uploaded file onto your destination fields, with a sample value per column and clear wording for anything left unmapped or assigned twice — so an import gets caught before it runs, not after it fails.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add standard-import-column-mapper

Built for react. Needs react already installed as a peer dependency. An Astro-only project needs @astrojs/react wired up first — this won't run on its own in plain Astro.

Full docs for Import Column Mapper →

Needs a licence key — subscribe here, then velocityx loginonce.

react v1.0.2 react
Import Column Mapper

Map your columns

Choose which field each column from your file should fill. Required fields are marked and must be mapped before import can continue.

1 required field is not yet mapped: Email.
Source columnSample valueMaps to
First NamePriya
Last NameNakamura
Email Addresspriya.n@example.com

Not mapped — this column is skipped.

CompanyMeridian Health
Phone+61 412 555 018

Props

NameTypeRequiredDefaultDescription
sourceColumnsarrayNo[]
destinationFieldsarrayNo[]
valueundocumentedYes
onChangeundocumentedYes
classNamestringNo""

3 fields in this table have an undocumented type — see source for the exact shape.

File this creates

The CLI writes this path into your project, relative to its root — nothing else moves.

text
components/velocity/standard-import-column-mapper/ImportColumnMapper.jsx

Using the Import Column Mapper component

Install it with velocityx add standard-import-column-mapper. The CLI writes the source straight into your project — no runtime dependency, no registry lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.

More from Standard Data.