FileInput
MoleculeDrag-and-drop file upload with validation, file list, and individual remove actions.
<%- include('modules/ui/FileInput', {
label: 'Profile photo',
hint: 'PNG or JPG, max 2 MB',
accept: 'image/*'
}) %>
<%- include('modules/ui/FileInput', {
label: 'Attachments',
hint: 'Up to 5 MB each',
multiple: true
}) %>
<%- include('modules/ui/FileInput', { label: 'Disabled upload', disabled: true }) %>
Please upload a valid PDF file.
<%- include('modules/ui/FileInput', {
label: 'Document',
hint: 'PDF only',
accept: '.pdf',
error: 'Please upload a valid PDF file.'
}) %>
<%- include('./FileInput/FileInput', locals) %>