Download Trigger
Icon/label button with a loading state while an async export function runs, then downloads the resolved Blob. Standalone — pairs with DataTable's `onExport` prop but composes into any export flow.
stable client:visible
Rendered example — light + dark
Light
Click to run a (simulated) async export — the button shows a loading spinner, then the browser downloads the resolved file.
Dark
Click to run a (simulated) async export — the button shows a loading spinner, then the browser downloads the resolved file.
Recipes & props
A realistic usage snippet for this component. Imports come from
@/components/ui/….
See the
source
for the full API.
No snippet yet for this component — open the source link above, or read the contribution guide .