Skip to main content

IMAGE_PICKER

Shows an image picker modal allowing the user to pick one image from a provided list of image objects ({ url, previewUrl?, label? }). The selected image object is stored as an output.

Images

step_IMAGEPICKER.png

At a glance

  • Category UI
  • Aliases USER_IMAGE_PICKER
  • Version: 1.0.0
  • Applications: all
  • Scope: all

Config Options

NameDescriptionDefaultRequiredResolvedConstraintsConditional Rules
promptTextPrompt text shown in the image picker modal.NonefalsetrueNoneNone
imageListList of image objects to show. Each item should contain at least a url and optionally previewUrl and label.NonefalsefalseNoneNone

Outputs

TypeDescriptionOptional
imageSelected image object (includes url, previewUrl?, label?).false

Examples

Pick an image from an explicit list

- step: USER_IMAGE_PICKER
promptText: "Choose an image"
imageList:
- url: "https://example.com/image1.jpg"
previewUrl: "https://example.com/thumb1.jpg"
label: "Image 1"
- url: "https://example.com/image2.jpg"
previewUrl: "https://example.com/thumb2.jpg"
label: "Image 2"

See Also

General Resources: