Skip to content

Commit

Permalink
docs: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed May 1, 2019
1 parent 4a4fe62 commit 76baede
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ Render prop gives you access to three callbacks:
| Prop | Type | Description |
| :------------------ | :-------------------------------------- | :----------------------------------
| `browseFiles` | `BrowseFilesParams => void` | Once executed, file browser will be shown. Useful for file upload buttons. The callback can also accept custom `onSuccess` and `onError` callbacks, that will override the main ones. |
| `validate` | `(files: Array<SelectedFile>) => void` | Enables manual validation of files. Eg. after editing the selected image in an image editor. |
| `getDropZoneProps` | `(additionalProps: ?Object) => Object` | Props that need to be spread to a drop zone. Additional props can be passed, for example `className` or `style`. |
| `getLabelProps` | `(additionalProps: ?Object) => Object` | Props that need to be spread to your file field's label. Additional props can be passed, for example `className` or `style`. |

Expand Down

0 comments on commit 76baede

Please sign in to comment.