% Auto-generated: do not edit by hand
\name{downloadButton}

\alias{downloadButton}

\title{DownloadButton component}

\description{
Button for exporting arrays or objects to files
}

\usage{
downloadButton(children=NULL, id=NULL, className=NULL, data=NULL,
filename=NULL, filetype=NULL, tooltip=NULL)
}

\arguments{
\item{children}{A list of or a singular dash component, string or number. Use the children prop to set the button content
This can be simple text or a component}

\item{id}{Character. The ID used to identify this component in Dash callbacks}

\item{className}{Character. Class(es) to add to the top-level element of the component
Note: the class "mpc-download-button" is always added}

\item{data}{Array or object (list or dictionary) to be downloaded
If downloading as csv or xlsx, data must be an array/list}

\item{filename}{Character. Name of the file WITHOUT the extension
(default: "export")}

\item{filetype}{A value equal to: 'json', 'csv', 'xlsx'. File type to be downloaded
This is also the extension that will be appended to the filename
(default: "json")}

\item{tooltip}{Character. Optional tooltip to display above the button on hover}
}

\value{named list of JSON elements corresponding to React.js properties and their values}

