Appearance
Function: downloadLink()
ts
function downloadLink(props: DownloadLinkProps): Element;Defined in: src/UI/blocks/downloadLink.tsx:33
Button link element for downloading a file.
Parameters
| Parameter | Type | Description |
|---|---|---|
props | DownloadLinkProps | Configuration object |
Returns
Element
Example
Basic usage:
downloadLink({
file: {
filename: 'example.pdf',
filetype: 'application/pdf',
base64: 'JVBERi0xLjQKJazc... (truncated base64 string)',
},
text: 'Download PDF',
icon: 'download',
});