#How to customise <.live_file_input>

1 messages · Page 1 of 1 (latest)

visual depot
#

The <.live_file_input> live component is great however it doesn't accept classes and it doesn't appear to be possible to embed html within it.

How would I customise the look of the component?

tawny hearth
#

I fully customized my file inputs without much issue. There are some tricks and nuances to it, but I don't remember having any showstoppers

#

this means all standard global HTML attributes (like class or style) are passed through

#

also see how you can extend it with a drop-target too, which can be a separate element

#

it doesn't have to surround the input either, like the example shows, it can be a sibling element

visual depot
#

Ok I'm getting there, however I'm having trouble integrating liveview with the native html form file input, IE you'll see it says no files chosen.

Is it possible to make that update iwthout javascript using liveview?