# QRCodeApi (@salmonui/charts/barcode)

> The QRCodeApi type of @salmonui/charts/barcode.

Canonical: https://salmonui.dev/docs/reference/charts/barcode/QRCodeApi

```ts
import type { QRCodeApi } from '@salmonui/charts/barcode';
```

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

## Reference

Kind: type

```ts
type QRCodeApi = BarcodeApi;
```

Members (5):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `element` | `element: SVGSVGElement \| null;` | inherited | The root `<svg>` (null before mount). |
| `toSVGString` | `toSVGString: () => string;` | inherited | Standalone SVG markup; works without a DOM (server, tests). |
| `toBlob` | `toBlob: (format?: BarcodeImageFormat \| undefined, options?: Omit<BarcodeExportOptions, "fileName" \| "format"> \| undefined) => Promise<...>;` | inherited |  |
| `toDataURL` | `toDataURL: (format?: BarcodeImageFormat \| undefined, options?: Omit<BarcodeExportOptions, "fileName" \| "format"> \| undefined) => Promise<...>;` | inherited |  |
| `export` | `export: (options?: BarcodeExportOptions \| undefined) => Promise<void>;` | inherited | Downloads the symbol; settles after the download started. |
