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#
| Prop | Type | Default | Required |
|---|---|---|---|
path | string | none | true |
path#
Path to the file to download.