Component libraryExport dialog
Components/Blocks

Export dialog

Pro

Choose a file format, row scope and fields before requesting an export.

npx shadcn@latest add @tidal-pro/export-dialog
Desktop viewport

Installation

Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.

Terminal
npx shadcn@latest add @tidal-pro/export-dialog

Import components/ui/tidal.css, components/ui/export-dialog.css, components/ui/dialog.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

TidalExportDialog composes the accepted Dialog around TidalExportOptions, which can also render as a native inline form with a forwarded form ref. Consumer supplies uniquely identified formats, scopes and fields, controlled formatId/scopeId/fieldIds, and all data preparation. Native format/radio/checkbox controls propose changes. Submit requires valid available format/scope and at least one field; native form/submitter handlers run first and prevention stops the export callback. Form action/method/target and submitter overrides, submit ref, format ref, field refs, pending/disabled, localized labels, heading level, error and footer are supported. Consumers own authorization, calculations, data selection, file generation, cancellation and delivery. The reusable component performs no request, download, persistence or export operation. The demo explicitly generates a local file containing at most three fictional contacts, then exposes a native download link. Selected missing or disabled field IDs block export until corrected. The localized Clear unavailable field selections action proposes removal of only those IDs, supports native clearUnavailableProps and clearUnavailableRef, respects caller prevention/pending/disabled, and recovers focus to a connected editable field or form if the accepted correction removes its focused button.

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.

Building with an agent?Give it the installation guide and component catalog.