mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-20 12:23:02 +00:00
docs(file-uploader): document "multiple" prop
This commit is contained in:
parent
72e57e61b8
commit
15f1f37de4
1 changed files with 5 additions and 1 deletions
|
@ -9,6 +9,10 @@ components: ["FileUploaderButton", "FileUploader", "FileUploaderDropContainer",
|
|||
|
||||
### File uploader (button-only)
|
||||
|
||||
By default, the file uploader only accepts one file.
|
||||
|
||||
Set `multiple` to `true` for multiple files to be uploaded.
|
||||
|
||||
<FileUploaderButton labelText="Add files" />
|
||||
|
||||
### File uploader
|
||||
|
@ -59,8 +63,8 @@ Use the `validateFiles` prop to filter out files before they are set.
|
|||
The following example accepts files smaller than 1 kB.
|
||||
|
||||
<FileUploaderDropContainer
|
||||
labelText="Drag and drop files here or click to upload"
|
||||
multiple
|
||||
labelText="Drag and drop files here or click to upload"
|
||||
validateFiles={files => {
|
||||
return files.filter(file => file.size < 1_024)
|
||||
}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue