Code
Props
Data Type
Required
className
string
β
id
string
β
name
string
β
placeholder
string
β
label
string
β
info
string
β
buttontext
string
β
helpText
string
β
error
boolean
β
errorMessage
string
β
readOnly
boolean
β
disabled
boolean
β
files
'All' | 'Images' | 'Audio' | 'Video'
β
onChange
Function
β
Files
This feature sets filters for the OS finder to show just the selected file types. But this is not a filter to prevent the user from uploading or not different file types. That's a validation developers have to implement by themselves to have a better control of processes.
Event Response
Property
Data Type
id
string
file
file object
fileExtension
string
fileName
string
fileURL
string
name
string
label
string
Example
Live Demo
For detailed code usage documentation, see the Storybooks for each framework below.
React
Last updated