Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] File Upload #563

Closed
geekyshow1 opened this issue Aug 22, 2023 · 5 comments
Closed

[Feature Request] File Upload #563

geekyshow1 opened this issue Aug 22, 2023 · 5 comments
Labels
enhancement New feature or request

Comments

@geekyshow1
Copy link

geekyshow1 commented Aug 22, 2023

Is your feature request related to a problem? Please describe.

I wanted to bring to your attention a feature that seems to be missing from the Nuxtlabs UI. Currently, I am facing a challenge while trying to create a form that involves file uploads. It appears that there is no built-in file upload feature available in the UI, which is causing a hurdle in my development process.

Describe the solution you'd like

Something similar to:
https://primevue.org/fileupload/
https://vuetifyjs.com/en/components/file-inputs/

@geekyshow1 geekyshow1 added the enhancement New feature or request label Aug 22, 2023
@geekyshow1 geekyshow1 changed the title File Upload [Feature Request] File Upload Aug 22, 2023
@atinux
Copy link
Member

atinux commented Aug 22, 2023

Thanks for the feedback, we can keep it in the roadmap.

In the meantime you can anyway use <input type="file" /> and style it yourself, see example on TailwindCSS docs: https://tailwindcss.com/docs/hover-focus-and-other-states#file-input-buttons

Copy link

I used @zagjs/file-upload and it worked so well.

@clopezpro
Copy link
Contributor

I used Tailwind
image

image

Copy link
Member

benjamincanac commented Jan 30, 2024

How would you feel if a <UInput type="file" /> looked like this in both white and gray colors:
CleanShot 2024-01-30 at 23.00.01@2x.png
CleanShot 2024-01-30 at 23.00.45@2x.png

Copy link
Member

benjamincanac commented Jan 31, 2024

Went with this design in the end:
CleanShot 2024-01-31 at 11.43.30@2x.png
CleanShot 2024-01-31 at 11.44.28@2x.png
It was way easier to put the button in absolute to keep the same dimensions as a normal input for all the different sizes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants