Velocity X Components

Standard Data

Export Button With Progress

A single export button that turns into a determinate progress bar while the job runs, then resolves into a download link or an inline retryable error — so long exports never leave users staring at a frozen button.

Subscription Included with the Velocity Components subscription.
bash
$ velocityx add standard-export-button-with-progress

Built for react. Needs react already installed as a peer dependency. An Astro-only project needs @astrojs/react wired up first — this won't run on its own in plain Astro.

Full docs for Export Button With Progress →

Needs a licence key — subscribe here, then velocityx loginonce.

react v1.0.1 react
Export Button With Progress

Props

NameTypeRequiredDefaultDescription
onExportfunctionNo() => Promise.resolve({ url: "", filename: "export.csv" })
labelstringNo"Export data"
exportingLabelstringNo"Exporting…"
doneLabelstringNo"Download ready"
errorLabelstringNo"Export failed"
classNamestringNo""

No `Props:` JSDoc comment found — types are undocumented in source, only names/defaults are known.

File this creates

The CLI writes this path into your project, relative to its root — nothing else moves.

text
components/velocity/standard-export-button-with-progress/ExportButtonWithProgress.jsx

Using the Export Button With Progress component

Install it with velocityx add standard-export-button-with-progress. The CLI writes the source straight into your project — no runtime dependency, no registry lock-in, and it themes itself from the same primary-*/accent-* scale as the rest of the library.

More from Standard Data.