Components
Home
File-picker
Name
@happeouikit/file-picker
Latest
1.2.6
License
MIT
Installation
yarn add @happeouikit/file-picker
Links
Dependencies (6)
@happeouikit/buttons@^2.0.2
@happeouikit/colors@^1.0.4
@happeouikit/icons@^2.1.13
@happeouikit/theme@^1.0.4
@happeouikit/typography@^1.0.7
react-intl@^3.12.0
File picker
onSelected
func
() => {}
disabled
bool
text
string
Dropzone
Dropzone
Dropzone always returns an array on the onSelect callback. Important: If you have added inputProps multiple:false, and user drag-drops more than 1 file, all dropped files will be returned. You need to select the first one on the list if necessary. This is to retain the fileList prototype.
Dropzone with custom main text and custom input props
Dropzone with custom children
The following attributes are injected into the child:
- clickUpload -fn
- isDragging -bool
- isDragActive -bool
- disabled -bool
Dropzone that is disabled
onSelected
func
() => {}
disabled
bool
false
text
string
null
inputProps
object
{ multiple: true }