File Input

The File Input component provides a reusable pattern for fileinput in the interface.

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

API

Parameter Default Description
Additional description or instructions.
files files
audio/*,video/*,image/* What file types to accept. Use MIME types. Example: audio/*,video/*,image/*
false Allow single or multiple files
false -
Maximum file size allowed in MB. Number (int) in bytes or string (small, medium, large). Default is null (no limit).
Message to show when upload fails
Message to show when minimum number of files is not met
file_upload @link:component/icon
false If field is required
1 Maximum number of files (int). Foced to 1 if multiple is false. Default 10 for multiple.
0 Minimum number of files (int). Default is 0.
Label to show on the field
Select file What text to show on the button
Remove file What text to show on the remove button
Drop files here A label for the drop area
Allowed files: Label for allowed file types
Videos Label for video file types
Images Label for image file types
Audios Label for audio file types
Maximum size Maximum size

CSS API

Variable Default Type 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