How to display images in the plugin ui?

I’m new to Figma development and I’m totally lost here. I have a folder of images that I’d like to be displayed in the ui once the plugin opens. The user will simply pick an image from the list and insert it into a fill on the canvas.

I understand that Figma needs the images’ data/url as the img src before it can be loaded. I’ve followed the Figma tutorial “Working With Images” but I’m confused even more. I’m more sure what file corresponds with what code written there.

Seems I’m missing something fundamental. What’s the correct way to go about this?

Cheers

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.