# exportXlsx (@salmonui/export/xlsx)

> The exportXlsx function of @salmonui/export/xlsx: Exports one grid, or several into one workbook (layout), as XLSX. Resolves to { fileName, mimeType, data }, or null when onBeforeExport prevents it. The writer module is loaded on first use.

Canonical: https://salmonui.dev/docs/reference/export/xlsx/exportXlsx

```ts
import { exportXlsx } from '@salmonui/export/xlsx';
```

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

## Reference

Kind: function

```ts
function exportXlsx<Row>(source: ExportSource<Row> | readonly ExportSource<Row>[], options?: XlsxExportOptions<Row>, handlers?: ExportHandlers<Row>): Promise<ExportFile | null>;
```

Exports one grid, or several into one workbook (`layout`), as XLSX.
Resolves to `{ fileName, mimeType, data }`, or null when `onBeforeExport`
prevents it. The writer module is loaded on first use.
