ComponentsImage input

Image input

Choose and preview an image before uploading it.

Example

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.

Example

Drop an image here or browse.

Disabled file input

Explain when an image is managed elsewhere.

Example

Only workspace administrators can change the logo.

Usage

FilesThese examples accept JPEG, PNG, and WebP files up to 5 MB. The preview stays local.
SubmissionSubmit the native file field with the form and validate the selected file again on the server.
RemovalRemove image clears the field and restores focus to the file chooser.