mirror of
https://github.com/carbon-design-system/carbon-components-svelte.git
synced 2025-09-20 20:33:02 +00:00
docs(file-uploader): add description for "File uploader"
This commit is contained in:
parent
15f1f37de4
commit
73fdc35ac9
1 changed files with 6 additions and 0 deletions
|
@ -17,6 +17,12 @@ Set `multiple` to `true` for multiple files to be uploaded.
|
|||
|
||||
### File uploader
|
||||
|
||||
The `FileUploader` wraps `FileUploaderButton` and lists out uploaded files.
|
||||
|
||||
The example below accepts multiple files with an extension of `.jpg` or `.jpeg`. It sets the status to `"complete"`; by default, the status is `"loading"`.
|
||||
|
||||
See the [item examples below](#item-uploading) for different statuses.
|
||||
|
||||
<FileUploader multiple labelTitle="Upload files" buttonLabel="Add files" labelDescription="Only JPEG files are accepted." accept="{['.jpg', '.jpeg']}" status="complete" />
|
||||
|
||||
### Clear files
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue