use vectorization to generate multiple similar outputs in Shiny

I want to have a scrollable sidebar like what you'll have in the LinkedIn Job page. The idea is to have a box that has certain outputs. And based on the incoming location data we will generate one box for each location, where it contains the address and a leaflet map.


I am learning to modulate the app and do some dynamic UI but I can' t find the correct path to go now. It would be great to have a prototype like design and I could modify on top of that.

Thanks!

You can do this relatively easy with the insertUI() function:

And see the example app:

https://gallery.shinyapps.io/insertUI/