Component libraryImport wizard
Import wizard
ProPrepare a file mapping, review parsed rows, and emit an import plan without executing an import.
npx shadcn@latest add @tidal-pro/import-wizardInstallation
Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.
Terminal
Import components/ui/tidal.css, components/ui/import-wizard.css, components/ui/column-mapper.css, components/ui/native-select.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.
Usage
Complete example source · Dependency and asset manifest
Loading the complete example…
API & behavior
Controlled step supports file, mapping, review, progress and result stages. The consumer supplies the file adapter, file metadata and validation state; source/destination schemas and controlled mapping; parsed preview columns/rows/issues; progress/result content; and every operation callback. onImportPlan receives only the file ID, mapping and native form event, and can run only from Review with a valid supplied file. A missing or invalid file leaves the submitter focusable, unavailable and linked to a visible localized reason. The wizard never reads, parses, uploads or imports a file. Native form action/method, submitter overrides, refs, caller-first prevention, persistent hidden fields, error-row download request and progress cancel request are preserved. Accepted Previous/Continue navigation prevents its original click default, uses a distinct submitter identity, and focuses the new panel without stealing focus after declined or unrelated changes. Native section attributes/ref, bounded heading level, labels, nullish/numeric content and controlled availability are supported. Nonnegative safe counts render; malformed counts are omitted or replaced by the visible row count. The review uses a semantic table with an owner-window observed overflow-only keyboard region and an explicit no-column state. Consumers own parsing, validation, authorization, transport, storage, progress and results.
Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.