File input

Displays a file input.

Fileinput by drag and drop, single file

Display as a file input area (dropzone, single file).

Allowed files: : Audios Videos Images

Fileinput by drag and drop, multiple files

Display as a file input area (dropzone, multi file).

Allowed files: : Audios Videos Images

Fileinput with minimum number of files

Display as a file input area (dropzone, multi file).

Allowed files: : Audios Videos Images

Parameters (Blade)

Key Default value Type Available values Description
string - Additional description or instructions.
files string - files
audio/*,video/*,image/* string - What file types to accept. Use MIME types. Example: audio/*,video/*,image/*
false boolean - Allow single or multiple files
false boolean - -
NULL - Maximum file size allowed in MB. Number (int) in bytes or string (small, medium, large). Default is null (no limit).
NULL - Message to show when upload fails
NULL - Message to show when minimum number of files is not met
file_upload string - @link:component/icon
false boolean - If field is required
1 integer - Maximum number of files (int). Foced to 1 if multiple is false. Default 10 for multiple.
0 integer - Minimum number of files (int). Default is 0.
string - Label to show on the field
Select file string - What text to show on the button
Remove file string - What text to show on the remove button
Drop files here string - A label for the drop area
Allowed files: string - Label for allowed file types
Videos string - Label for video file types
Images string - Label for image file types
Audios string - Label for audio file types
Maximum size string - Maximum size
string - The DOM id of the component.
[] array - Array containing wrapping classes array
[] array - Array containing keys and values rendered as attributes

Parameters (CSS)

Key Default value Type Available values Description
var(--border-radius) range - Border Radius
var(--border-width) range - Size
var(--space) range - Base spacing unit. Used for padding and margin inside components.
var(--color--surface) color - Surface
var(--color--danger) color - Danger
var(--color--success) color - Success
var(--font-size-90) range - One step below base in the type scale.
var(--font-size-80) range - Two steps below base in the type scale.
var(--color--surface-border) color - Manual companion token for borders on surface elements.
var(--shadow-color) rgba - Shadow Color
var(--shadow-amount) range - Multiplier for elevation shadows. 0 = none, 1 = default.
var(--corner-shape) select square, round, squircle, circular, bevel, scoop Corner Shape
var(--color--surface-alt) color - Manual companion token for subtle surface backgrounds.
var(--color--surface-contrast-muted) color - Derived muted contrast for text and icons on surface backgrounds.
var(--color--danger-border) color - Manual companion token for danger border and emphasis states.
var(--color--danger-contrast) color - Danger Contrast