Renders a button link element to download a file.
Configuration object for the download link
A JSX element representing the link component
If both text and icon are not provided, the filename will be used.
Basic usage:
downloadLink({ file: { filename: 'example.pdf', filetype: 'application/pdf', base64: 'JVBERi0xLjQKJazc... (truncated base64 string)', }, text: 'Download PDF', icon: 'download',}); Copy
downloadLink({ file: { filename: 'example.pdf', filetype: 'application/pdf', base64: 'JVBERi0xLjQKJazc... (truncated base64 string)', }, text: 'Download PDF', icon: 'download',});
Renders a button link element to download a file.