Add select field with svg icons from assets folder

Hi y’all,
I was wondering if it’s possible to query all svg images of a folder in the assets folder and display it in a select field in the panel?! I use a frontend lib that contains all the icons, so I do not want to copy all the icons somewhere in the contents folder…
Thanks, have a nice one, Andy

This could be achieved with options from an API:

To create your API, you can use route that returns your JSON encoded options with key (URL to file)/value(icon name) pairs.