novacbn / kahi-ui

Straight-forward Svelte UI for the Web
https://kahi-ui.nbn.dev
MIT License
187 stars 5 forks source link

File upload #67

Closed 0scvr closed 3 years ago

0scvr commented 3 years ago

Describe the Request

It would be great to have a file upload component with optional drag and drop.

Additional Context

No response

novacbn commented 3 years ago

Just to clarify, you mean the <input type="file" /> element but styled like the framework's Button component?

Screen Shot 2021-10-18 at 11 04 48

Or do you mean a file dropper box?

Screenshot from simple_aac_recording

0scvr commented 3 years ago

I should've been more explicit. I meant something like a file dropper box.

novacbn commented 3 years ago

Gotcha just wanted to make sure I understood. Gonna wrap up a couple things I have planned for updates this week, then I'll add it.

novacbn commented 3 years ago

https://novacbn-kahi-ui-pr-75-run-239.surge.sh/?path=/story/interactables-filedropinput--default

Should be good, unless there's something I'm missing. Supports click-to-prompt and drag'n'drop.

0scvr commented 3 years ago

https://novacbn-kahi-ui-pr-75-run-239.surge.sh/?path=/story/interactables-filedropinput--default

Should be good, unless there's something I'm missing. Supports click-to-prompt and drag'n'drop.

Looks awesome! Thanks for taking care of this 😊.

novacbn commented 3 years ago

https://kahi-ui.nbn.dev/docs/interactables/filedropinput/

Alright, it's live in 0.4.6. Usage example in the documentation linked above.