Download Provider
The Download Provider provides a click-listener that downloads a file from a specified URL.
#
ExampleA 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> );};
#
PropsProp | Type | Default | Required |
---|---|---|---|
path | string | none | true |
path
#
Path to the file to download.