Skip to content

File input - Web Component

The FileInput component can be used imported from:

Playground

Parameters

...

Events

This component has events. Check the documentation about how to use the events.

NamePayloadDescription
changeBlobReturns the file as a Blob
restartedvoidEmitted on value reset

Slots

This component has slots. Check the documentation about how to use the slots.

NameTagsDescription
labelspan
help-textspan

Parameters use

...

locale

droppable

If accept is used, a message with the accepted formats will be shown:

The locale attribute will affect this last message on accept:

Browser support

Detected engine:  

  • Chromium

  • Webkit

  • Gecko