Back to the list

Input image

Input showing an uploaded picture automatically.

File to include

@import "components/input-image";

Script to include

<script src="/lib/input-image.js"></script>
<div class="input-content input-image">
    <input type="file" id="image-1">
</div>

Attributes

Name Example value Possible values Default Required
data-icon-empty user-regular - image-solid No
data-icon-hover edit-regular - edit-solid No
data-validate passed "not-passed" | "passed" None No