Pro Components
Base Components
Field Map 2
Data import UI with empty table state, file browse trigger, and dialog to map source columns to target fields with combobox and preview.
Example
| First Name | Last Name | Phone | Country | |
|---|---|---|---|---|
Drop a file here or browse to begin
Introduction
Field Map 2 is a column-to-field mapping flow for imports (e.g. CSV):- Empty state: Table with a “No data imported” message and an overlay with a “Browse files” button that opens the mapping dialog.
- Mapping dialog: Source columns listed as badges on the left; each maps to a target field via a combobox. A preview panel shows sample values for the selected/focused column. Header includes Exit and Save.
Usage
import { FieldMapping1 } from "@/components/ui/field-mapping-1";
<FieldMapping1 />