ComponentsImage input
Image input
Choose and preview an image before uploading it.
Project image
Add a cover to the project’s workspace page.
JPEG, PNG, or WebP, up to 5 MB.
Setup
Download the shared Inlay assets once. Then choose HTML, React, or Vue and copy the example above.
Drop zone
Allow dropping a file and keep the file chooser keyboard-accessible.
Drop an image here or browse.
Disabled file input
Explain when an image is managed elsewhere.
Only workspace administrators can change the logo.
Usage
| Files | These examples accept JPEG, PNG, and WebP files up to 5 MB. The preview stays local. |
|---|---|
| Submission | Submit the native file field with the form and validate the selected file again on the server. |
| Removal | Remove image clears the field and restores focus to the file chooser. |