File Browser

This component is used for uploading files.

Example

API

Name Type Default Description
name string “fileInput” name/id of file input element
buttonType string “primary” one of: “primary”, “secondary”, “link”, “delete”
buttonLabel string ‘Browse’ label for button
accept string file type filter eg. “.csv, text/csv”
fileName string File name to be displayed next to the button
onFileSelected function called with file when file selected
onFileRemoved function called when the ‘x’ next to the file name is clicked

Used by

Team
Galileo