Download Data

The Download Data component allows you to place a link on your page to download a specified dataset to CSV.

<DownloadData data={categories}/>

Examples

Custom Text


<DownloadData data={categories} text="Click Here"/>

Custom Query ID


<DownloadData data={categories} queryID=my_file/>

Options

data
Required

Query name, wrapped in curly braces

Options:
query name
display

Whether link is visible. If using as part of a custom component, you can pass a variable representing the hover state of your component to control visibility.

Options:
Default:
true
text

Label to show on the link

Options:
string
Default:
Download
queryID

Label to include as the start of the CSV filename. If no queryID is supplied, "evidence_download" is used.

Options:
string