pqina / vue-filepond

🔌 A handy FilePond adapter component for Vue
https://pqina.nl/filepond
MIT License
1.91k stars 128 forks source link

[Feature] Use Image with Idle Label #260

Open SamratSahoo opened 1 year ago

SamratSahoo commented 1 year ago

Is there an existing issue for this?

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

When I make upload boxes, I generally think it would be nice to have an image that I could put next to my Idle label to indicate that this is an upload box and to make it more aesthetically pleasing (for example)

Describe the solution you'd like

I think it would be nice if we could have some sort of prop that allows us to specify our idle image label as a property

<file-pond
      label-idle="Drag a File or Browse to Upload an Image"
      image-label-idle="idle.png"
    />

Describe alternatives you've considered

maverickchangithub commented 1 year ago

yes you can . but not in your way , label-idle request a string , then turn into html. you can add

label-idle='<img src="img-path" />'

remember to resize the image or it will be bleeding out the block