Image Input mobile component
Take a photo with the camera or select photos from the library.
An input field to capture images from the device's camera or photo library. Image Input supports taking or selecting multiple photos, minimum and maximum count, and quality adjustments.
Captured images are temporarily stored on the device for native apps and in the Retool organization for web apps.
Properties
cameraOpenedboolean
Whether the camera is currently in use.
disabledboolean
Whether user input, interaction, or selection is disabled.
filesobject[]
The metadata from the selected files. Includes name, type, size, and last modified..
hiddenboolean
Whether the component is visible.
idstring
The name of the component.
labelstring
The input label.
launchMode'camera' │ 'library' │ 'option'
Whether to capture images from the camera, photo library, or enable the user to select.
libraryOpenedboolean
Whether the photo library is currently open.
maxCountnumber | null
The maximum number of items allowed.
minCountnumber | null
The minimum number of items allowed.
placeholderstring
The placeholder text for the input.
pluginTypestring
The component type.
resolution'original' | 'high' | 'medium' | 'low'
The resolution with which to optimize captured images.
selectionType'single' │ 'multiple' │ 'directory'
The type of selection to allow.
shouldCompressboolean
Whether to compress captured images.
tooltipTextboolean
The text to display in a tooltip on hover or focus.
valuestring[]
A list of blob:
or file://
URI strings. Use utils.getDataByObjectURL()
to convert into Base64-encoded strings.