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

Required

Query name, wrapped in curly braces

Options:
query name

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

Label to show on the link

Options:
string
Default:
Download

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

Options:
string