ExportButton
Exports the current list to CSV, fetching at most maxResults records (default 1000).
Installation
pnpm dlx shadcn@latest add @chelone/export-buttonExports the current list to CSV, fetching at most maxResults records (default 1000).
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| className | string | — | |
| exporter | Exporter | — | |
| icon | ReactNode | — | |
| label | string | — | |
| maxResults | number | — | |
| meta | unknown | — | |
| onClick | (e: MouseEvent<HTMLButtonElement>) => void | — | |
| ref | Ref<HTMLButtonElement> | — | |
| resource | string | — |