vue-atlas
vue-atlas copied to clipboard
[Feature request] File input
File picker with previews will be great. For example https://lusaxweb.github.io/vuesax/components/upload.html#default
Btw, will be also great to merge all inputs in one input with type attribute. Just as native input works. Wdyt ?
good idea. if (when) this is implemented, it will be as a <va-input type="file" ... />
Do u work with this ? If no, let's discuss about component feature and interface, and i am open to contribute.
I haven't had time to work on this yet. still exploring ideas. I'm not sure how it would even look quite yet
It can be button with appropriate icon, and filename when file is picked
But in other hand, there should accept drag and drop, and file preview. Helpful for images, but it may use appropriate icon for common file types. Documents, videos, audio, etc.
Have u design system ? Which u use.
Few examples of such component that i created for a long time ago.
looks nice, if you'd like to work on this then please go ahead. if you do decide to work on this, please try and make it appear visually similar to the current button/input styles
some thoughts:
- automatic preview of images should be optional
- drag and drop target should be its own component?
Let's postpone drag and drop for now. I completely agree that it should looks like current design. Do u have design system or something like that ? If no, i just will try to make it similar with current design.
I do not have a design system, so you'll have to use your best judgement
Ok, will do
I am working on it. I've implemented component almost fully. I'm just working under it's style. And i'm gonna to use ToggleIcon and Buttons with prefix/postfix on this file picker.