Matterway
    Preparing search index...

    Function downloadLink

    • Button link element for downloading a file.

      Parameters

      • props: DownloadLinkProps

        Configuration object

        • file

          File to download

        • text

          Optional text to display on the link

        • icon

          Optional icon to display on the link

      Returns Element

      Basic usage:

      downloadLink({
      file: {
      filename: 'example.pdf',
      filetype: 'application/pdf',
      base64: 'JVBERi0xLjQKJazc... (truncated base64 string)',
      },
      text: 'Download PDF',
      icon: 'download',
      });