Component libraryCSV preview
CSV preview
ProInspect parsed rows and field-level validation messages before an import.
npx shadcn@latest add @tidal-pro/csv-previewInstallation
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/csv-preview.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
Consumer-owned columns with unique IDs, parsed row objects with unique IDs, exact row-number labels and cells, and optional per-row warning/error messages with unique IDs and optional column references. The optional controlled all/issues view filters supplied rows. totalRows must be an exact safe integer at least as large as the supplied sample; absence is disclosed. Phone row cards replace the native desktop table without hiding individual values. Empty/configuration states, localized labels/count summary, title/file/description, section props/ref, heading level, native filter/export button props and export ref are supported. Native handlers run first; prevention stops proposals. Disabled or pending controls remain inert. An optional export callback receives the supplied issue rows only. No parser, download, file read, upload, import, validation inference or network/storage behavior is bundled.
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.