Skip to content

Add FileInput Component

Compare
Choose a tag to compare
@zwalker zwalker released this 02 Mar 22:19
· 3078 commits to master since this release

This release adds the FileInput component that makes dealing with file inputs simpler. This component is the default "file" input when using FormRow. Also, due to the nature of file inputs, this is an uncontrolled component.

Example usage:

// as a plain input
<FileInput onChange={files => console.log(files)} /> // files is a FileList object

// or, in a FormRow
<FormRow type="file" />

Learn more about files and the Files API here.