Features
- Paste, drag & drop, upload, or provide a URL, all with the same unified API!
- Inline preview (
nopreview
attribute to disable) - Uses
ElementInternals
to work like a built-in form element - Ultra light
TODO
multiple
attribute?- Regargeting of input attributes (
autofocus
,placeholder
etc)
Examples
Basic
<img-input></img-input>
No preview
<img-input nopreview></img-input>
CSS parts
input
,location
- The input element used for URL or filenamedropzone
The drop zonebutton
,browse-button
- The button used to open the file browserpreview
- The preview image