Skip to main content

Download Provider

The Download Provider provides a click-listener that downloads a file from a specified URL.

Example#

A Download Button which when clicked, invokes the DownloadProvider that downloads the file at url.


export const Download = ({ url }) => {  return (    <DownloadProvider path={url}>        <div className="Download Button" />    </DownloadProvider>  );};

Props#

PropTypeDefaultRequired
pathstringnonetrue

path#

Path to the file to download.