Browse Source

Corrected hanging sentence, added an example (#2842)

There was a hanging sentence, that made this documentation unclear. Fixed the sentence, added an example.
Antonio B 4 years ago
parent
commit
1831f8e98d
1 changed files with 11 additions and 1 deletions
  1. 11 1
      website/src/docs/svelte.md

+ 11 - 1
website/src/docs/svelte.md

@@ -124,7 +124,17 @@ Styles for Provider plugins, like Google Drive and Instagram, are also bundled w
   
 #### Props
 
-The `<Dashboard />` component supports all `@uppy/dashboard` options to be passed as an object o
+The `<Dashboard />` component supports all `@uppy/dashboard` options to be passed as an object to the `props` prop:
+
+```html
+<Dashboard
+    uppy={uppy}
+    props={{
+      height: 350,
+      plugins: ['Webcam']
+    }}
+  />
+```
 
 The `<Dashboard />` cannot be passed to a `target:` option of a remote provider or plugins such as [`@uppy/webcam`][]. To use other plugins like [`@uppy/webcam`][] with the `<Dashboard />` component, first add them to the Uppy instance, and then specify their `id` in the [`plugins`](/docs/dashboard/#plugins) prop: