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 Type Description
string -
files string -
audio/*,video/*,image/* string -
false boolean -
false boolean -
null string|integer|null -
null ?string -
null ?string -
file_upload string -
false boolean -
1 integer -
0 integer -
string -
Select file string -
Remove file string -
Drop files here string -
Allowed files: string -
Videos string -
Images string -
Audios string -
Maximum size string -

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