FileInput

A general purpose file input field.

Props

Name
Type
Default
Description
onChange*
func
The change event handler.
name*
string
A unique semantic name that is connected to the label.
description
string
Additional description information display beneath the input.
disabled
bool
Sets disabled.
errorMessage
string
An error message text that is displayed once isValid is false.
isValid
bool
Sets the validation state.
label
string
The label text.
loading
bool
Whether the input is loading
multiple
bool
Whether the input supports multiple files
onBlur
func
The bur event handler.
onFocus
func
The focus event handler.
required
bool
Sets required.
value
string
The controlled value.

Examples

Description & Error Message

Disabled

Loading