File upload

A drag-and-drop file upload zone.

Multiple

Image preview

With progress

report-q2.pdf70%

API reference

Inputs

PropTypeDefaultDescription
multiplebooleanfalseWhether multiple files can be selected and accumulated.
acceptstring''Comma-separated list of accepted file types (the `accept` attribute).
namestring''Native `name` attribute for the file input.
hintstring''Optional helper text shown under the dropzone label.
disabledbooleanfalseWhether the upload zone is disabled.
dropzoneLabelstringCustom dropzone prompt text.
removeLabelstringCustom accessible label for each remove button.

Outputs

EventPayloadDescription
filesChangereadonly File[]Emitted with the current file list whenever the selection changes.

Every ng-blatui component also accepts a class input to merge extra Tailwind classes onto the host.