# exportICalendar (@salmonui/export/ics)

> The exportICalendar function of @salmonui/export/ics: writeICalendar as an export file ({ fileName, mimeType: 'text/calendar', data }).

Canonical: https://salmonui.dev/docs/reference/export/ics/exportICalendar

```ts
import { exportICalendar } from '@salmonui/export/ics';
```

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

## Reference

Kind: function

```ts
function exportICalendar(events: readonly ICalendarEvent[], options?: ICalendarExportOptions): {
    readonly fileName: string;
    readonly mimeType: string;
    readonly data: string;
};
```

`writeICalendar` as an export file (`{ fileName, mimeType: 'text/calendar', data }`).
