Function downloadLink

  • Renders a button link element to download a file.

    Parameters

    • props: DownloadLinkProps

      Configuration object for the download link

    Returns Element

    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',
    });