ExportButton
Export with loading states.
Loading…
Export with loading states.
Loading…
Trigger PNG/JPG/SVG export or copy-to-clipboard with loading states.
| Prop | Type | Default | Description |
|---|---|---|---|
| onExport | (format) => void | Promise<void> | — | Export handler. |
| formats | ExportFormat[] | png, jpg, clipboard | Enabled formats. |
| className | string | — | Optional CSS class. |
Also copy lib/utils.ts (cn helper):