9 |
10 |
45 |
--------------------------------------------------------------------------------
/src/FileSelector.vue:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
47 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # vue3-file-selector
2 |
3 | A Vue 3 headless File Selector component.
4 |
5 | ## How to use
6 |
7 | This library includes a few headless components for a drag and drop supported
8 | file selector.
9 |
10 | Here's the parts:
11 |
12 | - `FileSelector`: The main container, needs to be used
13 | - `Dropzone`: Handles the drag and drop logic, does not need to be used
14 | - `DialogButton`: Unstyled button that opens the file dialog on click, does not need to be used
15 |
16 | ## Basic example
17 |
18 | [See it in action.](https://codesandbox.io/s/sweet-fog-f5wgd?file=/src/App.vue)
19 |
20 | Here's a basic example with drag and drop and a list of the selected files.
21 |
22 | ```vue
23 |
24 |
25 |
26 |