ExportButton

Exports the current list to CSV, fetching at most maxResults records (default 1000).

Installation

pnpm dlx shadcn@latest add @chelone/export-button

Exports the current list to CSV, fetching at most maxResults records (default 1000).

Props

PropTypeDefaultDescription
classNamestring—
exporterExporter—
iconReactNode—
labelstring—
maxResultsnumber—
metaunknown—
onClick(e: MouseEvent<HTMLButtonElement>) => void—
refRef<HTMLButtonElement>—
resourcestring—