update
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
|
||||
# sv-dropzone
|
||||
|
||||
sv-dropzone is a simple & ssr ready wrapper around [dropzoneJS] for [svelte] and [sapper].
|
||||
|
||||
<div align="center">
|
||||
|
||||

|
||||
@@ -39,14 +39,14 @@ $ npm i sv-dropzone
|
||||
## API
|
||||
|
||||
| prop | default | type/structure |
|
||||
| -------------- | -------------------------------------------------------------------------------------- | ------------------------------------- |
|
||||
| -------------- | -------------------------------------------------------------------- | ------------------------------------- |
|
||||
| dropzoneEvents | {} | object:{{ [eventName]: func}} |
|
||||
| options | { previewTemplate: "`<div/>`", dictDefaultMessage: "" } | object:{{ [optionName]: optionValue}} |
|
||||
| dropzoneClass | "dropzone" | string |
|
||||
| hooveringClass | "dropzone-hoovering" | string |
|
||||
| id | "dropId" | string |
|
||||
| autoDiscover | false | bool |
|
||||
| slot | `<p class="dropzoneDefaultSentence"> drop your file(s) here or click </p>` | element |
|
||||
| slot | `<p class="dropzoneDefaultSentence"> Drop files here to upload </p>` | element |
|
||||
|
||||
- All dropzone events can be found [here](https://www.dropzonejs.com/#events-list)
|
||||
- All dropzone options can be found [here](https://www.dropzonejs.com/#configuration-options)
|
||||
|
||||
Reference in New Issue
Block a user