@brighthr/component-file-selector
Advanced tools
Comparing version 1.1.5 to 1.1.6
import React from 'react'; | ||
import { DropzoneOptions } from 'react-dropzone'; | ||
declare type FileSelectorProps = React.HTMLAttributes<HTMLDivElement> & { | ||
type FileSelectorProps = React.HTMLAttributes<HTMLDivElement> & { | ||
onFilesSelected: (files: File[]) => void; | ||
@@ -9,3 +9,3 @@ dropZoneOptions?: DropzoneOptions; | ||
}; | ||
declare type FileInformationProps = React.HTMLAttributes<HTMLDivElement> & { | ||
type FileInformationProps = React.HTMLAttributes<HTMLDivElement> & { | ||
fileProblemDescription?: string; | ||
@@ -12,0 +12,0 @@ fileDescription?: string; |
{ | ||
"name": "@brighthr/component-file-selector", | ||
"version": "1.1.5", | ||
"version": "1.1.6", | ||
"license": "MIT", | ||
@@ -23,4 +23,4 @@ "type": "module", | ||
"dependencies": { | ||
"@brighthr/component-button": "^2.1.4", | ||
"@brighthr/component-icon": "^2.1.3", | ||
"@brighthr/component-button": "^2.1.5", | ||
"@brighthr/component-icon": "^2.1.4", | ||
"@brighthr/component-spinner": "^1.0.1", | ||
@@ -30,3 +30,3 @@ "classnames": "^2.3.1", | ||
}, | ||
"gitHead": "59dd6f33c329323bafa6ba65b11a28f9faf3baca" | ||
"gitHead": "df7c45387b0f3c9eae38fd1b8e236bccab1caa6d" | ||
} |
@@ -11,6 +11,4 @@ # File Selector | ||
## Import | ||
To implement the FileSelector component into your project you’ll need to add the import: | ||
Import into your file: | ||
```javascript | ||
@@ -32,1 +30,7 @@ import FileSelector from '@brighthr/component-file-selector'; | ||
``` | ||
| Name | Type | Default | Description | | ||
|-----------------|---------------------------|---------|--------------------------------------------------------------------------| | ||
| dropZoneOptions | `react-dropzone options` | `{}` | Options to pass into react-dropzone (see https://react-dropzone.js.org/) | | ||
| onFilesSelected | `(files: File[]) => void` | | Fucntion to handle the onchange when files are selected. | | ||
| text | `string` | | Sets the text to display above the button. | |
Sorry, the diff of this file is not supported yet
29220
35