TidalUI

Export dialog preview

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

pro · Blocks · composite

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

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

Import components/ui/tidal.css, components/ui/export-dialog.css. Wrap installed components in tidal-scope.

Preview

Export dialog component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/export-dialog.css";
import{TidalExportDialog}from"./components/ui/export-dialog";
export default(p:Parameters<typeof TidalExportDialog>[0])=><div className="tidal-scope"><TidalExportDialog {...p}/></div>;

API and props

TidalExportDialog.fields (required)
ReadonlyArray<TidalExportField>

Required fields value accepted by this exported component.

TidalExportDialog.formats (required)
ReadonlyArray<TidalExportFormat>

Required formats value accepted by this exported component.

TidalExportDialog.onOpenChange (required)
(open: boolean) => void

Callback invoked when the open change interaction is proposed.

TidalExportDialog.onValueChange (required)
(next: TidalExportValue, event: TidalExportChangeEvent) => void

Callback invoked when the value change interaction is proposed.

TidalExportDialog.open (required)
boolean

Required open value accepted by this exported component.

TidalExportDialog.scopes (required)
ReadonlyArray<TidalExportScope>

Required scopes value accepted by this exported component.

TidalExportDialog.value (required)
TidalExportValue

Required value value accepted by this exported component.

TidalExportDialog.clearUnavailableProps
SubmitProps | undefined

Optional clear unavailable props value accepted by this exported component.

TidalExportDialog.clearUnavailableRef
Ref<HTMLButtonElement> | undefined

Optional clear unavailable ref value accepted by this exported component.

TidalExportDialog.description
string | undefined

Optional description value accepted by this exported component.

TidalExportDialog.disabled
boolean | undefined

Optional disabled value accepted by this exported component.

TidalExportDialog.error
ReactNode

Optional error value accepted by this exported component.

TidalExportDialog.footer
ReactNode

Optional footer value accepted by this exported component.

TidalExportDialog.formatRef
Ref<HTMLSelectElement> | undefined

Optional format ref value accepted by this exported component.

TidalExportDialog.headerActions
ReactNode

Optional header actions value accepted by this exported component.

TidalExportDialog.headingLevel
2 | 3 | 4 | 5 | 6 | undefined

Optional heading level value accepted by this exported component.

TidalExportDialog.labels
Partial<{ format: string; scope: string; fields: string; submit: string; pending: string; empty: string; configuration: string; fieldRequired: string; clearUnavailable: string; }> | undefined

Optional labels value accepted by this exported component.

TidalExportDialog.onExportRequest
((value: TidalExportValue, event: FormEvent<HTMLFormElement>) => void) | undefined

Callback invoked when the export request interaction is proposed.

TidalExportDialog.pending
boolean | undefined

Optional pending value accepted by this exported component.

TidalExportDialog.submitProps
SubmitProps | undefined

Optional submit props value accepted by this exported component.

TidalExportDialog.submitRef
Ref<HTMLButtonElement> | undefined

Optional submit ref value accepted by this exported component.

TidalExportDialog.theme
"light" | "dark" | undefined

Optional theme value accepted by this exported component.

TidalExportDialog.title
string | undefined

Optional title value accepted by this exported component.

TidalExportDialog.trigger
ReactElement<unknown, string | JSXElementConstructor<any>> | undefined

Optional trigger value accepted by this exported component.

TidalExportOptions.fields (required)
ReadonlyArray<TidalExportField>

Required fields value accepted by this exported component.

TidalExportOptions.formats (required)
ReadonlyArray<TidalExportFormat>

Required formats value accepted by this exported component.

TidalExportOptions.onValueChange (required)
(next: TidalExportValue, event: TidalExportChangeEvent) => void

Callback invoked when the value change interaction is proposed.

TidalExportOptions.scopes (required)
ReadonlyArray<TidalExportScope>

Required scopes value accepted by this exported component.

TidalExportOptions.value (required)
TidalExportValue

Required value value accepted by this exported component.

TidalExportOptions.clearUnavailableProps
SubmitProps | undefined

Optional clear unavailable props value accepted by this exported component.

TidalExportOptions.clearUnavailableRef
Ref<HTMLButtonElement> | undefined

Optional clear unavailable ref value accepted by this exported component.

TidalExportOptions.description
ReactNode

Optional description value accepted by this exported component.

TidalExportOptions.disabled
boolean | undefined

Optional disabled value accepted by this exported component.

TidalExportOptions.error
ReactNode

Optional error value accepted by this exported component.

TidalExportOptions.footer
ReactNode

Optional footer value accepted by this exported component.

TidalExportOptions.formatRef
Ref<HTMLSelectElement> | undefined

Optional format ref value accepted by this exported component.

TidalExportOptions.headerActions
ReactNode

Optional header actions value accepted by this exported component.

TidalExportOptions.headingLevel
2 | 3 | 4 | 5 | 6 | undefined

Optional heading level value accepted by this exported component.

TidalExportOptions.labels
Partial<{ format: string; scope: string; fields: string; submit: string; pending: string; empty: string; configuration: string; fieldRequired: string; clearUnavailable: string; }> | undefined

Optional labels value accepted by this exported component.

TidalExportOptions.onExportRequest
((value: TidalExportValue, event: FormEvent<HTMLFormElement>) => void) | undefined

Callback invoked when the export request interaction is proposed.

TidalExportOptions.pending
boolean | undefined

Optional pending value accepted by this exported component.

TidalExportOptions.submitProps
SubmitProps | undefined

Optional submit props value accepted by this exported component.

TidalExportOptions.submitRef
Ref<HTMLButtonElement> | undefined

Optional submit ref value accepted by this exported component.

TidalExportOptions.title
ReactNode

Optional title value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas