The <luna-file-input> component provides drag-and-drop file upload with support for multiple files and custom file type restrictions.
Paths
/lunadom/components/file-input/file-input.js Basic File Upload
Multiple Files
Specific Extensions
Custom Dropzone
🖼️
Upload Avatar
PNG, JPG or WEBP (max 5MB)
Customization
default - Default label textlabel - Custom label contenthint - Custom hint contentdropzone - Custom content for the drop zonefile-icon - Custom icon for each file in the listlabel - Label text for the inputhint - Help text below the inputmultiple - Allow multiple file selectionaccept - Accepted file types (e.g., ".pdf,.doc")disabled - Whether the file input is disabledrequired - Whether the file input is required for form validationsize - The size of the file input (sm, md, lg)name - The name attribute for form submission--luna-file-input-bg - Background color of the dropzone--luna-file-input-border - Border color of the dropzone--luna-file-input-color - Text color inside the dropzone--luna-file-input-radius - Border radius of the dropzone--luna-file-input-accent - Accent color for drag-over state--luna-file-input-shadow - Box shadow when dragging overluna-change - Emitted when files are selected or removedluna-remove - Emitted when a file is removedfiles - Array of selected files