Appearance
Function: DownloadLink()
ts
function DownloadLink(props: DownloadLinkProps): Block;Defined in: src/renderer/blocks/index.ts:1211
Download link component.
Parameters
| Parameter | Type |
|---|---|
props | DownloadLinkProps |
Returns
Example
ts
DownloadLink({
file: {
filename: 'invoice-2024.pdf',
filetype: 'application/pdf',
base64: 'JVBERi0xLjQKJazc...',
},
text: 'Download PDF',
icon: 'download',
});