easeUI

File Upload

Dropzone that also opens the native file picker, with a list below it that pops each file in and collapses smoothly on remove.

Installation

$ bunx --bun shadcn add @easeui/file-upload

API reference

PropTypeDefaultDescription
value?{}-Controlled list of picked files.
defaultValue?{}[]Starting files when uncontrolled. Default [].
onChange?((files: {}) => void)--
accept?string-MIME types or extensions accepted, passed to the native file input.
multiple?booleantrueAllows picking or dropping more than one file at once. Default true.
maxSize?number-Largest a single file may be, in bytes. Larger files are rejected with an inline error.
disabled?booleanfalse-
className?string--

Updated