Form input

File input

Return File data directly without mixing selection with upload transport or queue state.

Playground

Configure the component and copy synchronized Vue code.

Interactive preview

Changes are reflected in the example and source.

Properties

Multiple

Show size

Clearable

Actions slot

Vue

<m-file-input
  v-model="files"
  accept="image/*"
  show-size
  clearable
  label="Assets"
>
</m-file-input>

Token map

The manual manifest combines inherited token owners with local deltas.

MFileInput · All30 tokens
md-file-input

MFileInput API

Props, slots, and events are generated from the current public kit contract.

MFileInput

Field family
src/runtime/components/ui/file-input

Props

NameTypeDefault
disabledPrevents interaction and applies the disabled visual state.
booleanfalse
loadingReplaces content with progress feedback and prevents interaction.
booleanfalse
readonly
booleanfalse
variant
'filled' | 'outlined' | 'underline''filled'
rounded
'sharp' | 'small' | 'medium' | 'large' | 'pill''small'
labelPlacement
'top' | 'float' | 'inset' | 'hidden''float'
path
stringundefined
name
stringundefined
label
stringundefined
placeholder
stringundefined
helperText
stringundefined
error
booleanfalse
errorMessage
stringundefined
required
booleanfalse
autofocus
booleanfalse
autocomplete
stringundefined
accept
stringundefined
multiple
booleanfalse
capture
boolean | 'user' | 'environment'undefined
maxFiles
numberundefined
maxSize
numberundefined
showSize
booleanfalse
clearable
booleantrue

Slots

Events

@rejectFileRejection
@clearvoid
@selectFile[]