From d8d91717b8ab98fa976e1c1abf13ef859af84cdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9s?= Date: Fri, 26 Apr 2019 19:43:15 +0200 Subject: [PATCH] Add undocumented props to docs --- packages/components/src/drop-zone/README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/components/src/drop-zone/README.md b/packages/components/src/drop-zone/README.md index 55206559ca2673..567862b4ed792b 100644 --- a/packages/components/src/drop-zone/README.md +++ b/packages/components/src/drop-zone/README.md @@ -28,6 +28,20 @@ const MyDropZone = withState( { The component accepts the following props: +### className + +A CSS `class` to be _appended_ after the default `components-drop-zone` class. + +- Type: `String` +- Default: `undefined` + +### label + +A string to be shown within the drop zone area. + +- Type: `String` +- Default: `Drop files to upload` + ### onFilesDrop The function is called when dropping a file into the `DropZone`. It receives two arguments: an array of dropped files and a position object which the following shape: `{ x: 'left|right', y: 'top|bottom' }`. The position object indicates whether the drop event happened closer to the top or bottom edges and left or right ones.