Button link element for downloading a file.
Configuration object
File to download
Optional text to display on the link
Optional icon to display on the link
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',});
Button link element for downloading a file.