# exportCsv (@salmonui/core/export-model)

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

Canonical: https://salmonui.dev/docs/reference/core/export-model/exportCsv

```ts
import { exportCsv } from '@salmonui/core/export-model';
```

Entry index: https://salmonui.dev/docs/reference/core/export-model (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/core/export-model.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.
