# exportCsv (@salmonui/data-grid/engine/export)

> The exportCsv function of @salmonui/data-grid/engine/export: Exports a grid (an engine with the export module, or a model) as CSV text.

Canonical: https://salmonui.dev/docs/reference/data-grid/engine-export/exportCsv

```ts
import { exportCsv } from '@salmonui/data-grid/engine/export';
```

Entry index: https://salmonui.dev/docs/reference/data-grid/engine-export (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid/engine-export.md).

## Reference

Kind: function

```ts
function exportCsv<Row>(source: ExportSource<Row>, options?: CsvExportOptions<Row>, handlers?: ExportHandlers<Row, string>): Promise<ExportFile<string> | null>;
```

Exports a grid (an engine with the `export` module, or a model) as CSV text.
