Skip to content
roguelite labsAnthony Spezzano ↗
Prompt/FileUpload

FileUpload

Drag-and-drop file upload zone with click-to-browse and uploaded file list.

Use and inspectUse this as a presentational interface around your own submit, stream, or state handlers. Reset preview only remounts the local example; it does not send a request or connect to a model.Next: inspect the source and wire its callback to a bounded backend action.
FileUploadDrag-and-drop file upload zone with click-to-browse and uploaded file list.
PropTypeDefaultDescription
acceptstringMIME types or file extensions to accept
multiplebooleanfalseAllow multiple file selection
onFiles(f: File[]) => voidCalled when files are added