@mantine-vue/dropzone 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +47 -0
- package/package.json +3 -3
package/README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# @mantine-vue/dropzone
|
|
2
|
+
|
|
3
|
+
High-performance file drag & drop zone component for Vue, equivalent to `@mantine/dropzone`.
|
|
4
|
+
|
|
5
|
+
> Mantine Vue is an independent community port of [Mantine](https://mantine.dev/) for Vue 3. It is not affiliated with or endorsed by the Mantine team.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
yarn add @mantine-vue/dropzone @mantine-vue/core @mantine-vue/hooks
|
|
11
|
+
|
|
12
|
+
# or with npm
|
|
13
|
+
npm i @mantine-vue/dropzone @mantine-vue/core @mantine-vue/hooks
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
18
|
+
```vue
|
|
19
|
+
<script setup>
|
|
20
|
+
import { Dropzone } from '@mantine-vue/dropzone'
|
|
21
|
+
import '@mantine-vue/dropzone/styles.css'
|
|
22
|
+
|
|
23
|
+
function handleDrop(files) {
|
|
24
|
+
console.log('accepted files', files)
|
|
25
|
+
}
|
|
26
|
+
</script>
|
|
27
|
+
|
|
28
|
+
<template>
|
|
29
|
+
<Dropzone @drop="handleDrop" :accept="['image/png', 'image/jpeg']">
|
|
30
|
+
<p>Drag files here or click to select</p>
|
|
31
|
+
</Dropzone>
|
|
32
|
+
</template>
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Documentation
|
|
36
|
+
|
|
37
|
+
Full API and examples: [mantine-vue.dev/x/dropzone](https://mantine-vue.dev/x/dropzone)
|
|
38
|
+
|
|
39
|
+
## Peer dependencies
|
|
40
|
+
|
|
41
|
+
- `vue` ^3.5.0
|
|
42
|
+
- `@mantine-vue/core`
|
|
43
|
+
- `@mantine-vue/hooks`
|
|
44
|
+
|
|
45
|
+
## License
|
|
46
|
+
|
|
47
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mantine-vue/dropzone",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "Vue file drag & drop zone component equivalent to @mantine/dropzone",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"files": [
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"vue": "^3.5.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"@mantine-vue/core": "1.1.
|
|
41
|
-
"@mantine-vue/hooks": "1.1.
|
|
40
|
+
"@mantine-vue/core": "1.1.3",
|
|
41
|
+
"@mantine-vue/hooks": "1.1.3",
|
|
42
42
|
"vue": "^3.5.0"
|
|
43
43
|
}
|
|
44
44
|
}
|