Browse Source

Add tiny option example snippets to React components that didnt have them.

Renée Kooi 7 years ago
parent
commit
f6d4ae8aac

+ 8 - 0
website/src/docs/react-dragdrop.md

@@ -15,4 +15,12 @@ import DragDrop from 'uppy/lib/react/DragDrop';
 
 The `<DragDrop />` component supports all [DragDrop][] options as props.
 
+```js
+<DragDrop
+  width="100%"
+  height="100%"
+  note="Images up to 200×200px"
+/>
+```
+
 [DragDrop]: /docs/dragdrop/

+ 7 - 0
website/src/docs/react-progressbar.md

@@ -15,4 +15,11 @@ import ProgressBar from 'uppy/lib/react/ProgressBar';
 
 The `<ProgressBar />` component supports all [ProgressBar][] options as props.
 
+```js
+<ProgressBar
+  fixed
+  hideAfterFinish
+/>
+```
+
 [ProgressBar]: /docs/progressbar/

+ 8 - 0
website/src/docs/react-statusbar.md

@@ -15,4 +15,12 @@ import StatusBar from 'uppy/lib/react/StatusBar';
 
 The `<StatusBar />` component supports all [StatusBar][] options as props.
 
+```js
+<StatusBar
+  hideUploadButton
+  hideAfterFinish={false}
+  showProgressDetails
+/>
+```
+
 [StatusBar]: /docs/statusbar/