How to huild a complex suggester UI

Hello.
I’m very happy that Obsidian finally exposes a simple a nice API for building inputs that suggests values.
However, the render API is a bit simple, and I don’t know how you are suposed to render more complex UIs. For me is very important that my plugin looks integrated with the rest of the UI , so I want to mimic the UI obsidian shows when offering link suggestions.
Until now, I reverse-engendered the UI of obsidian and just re-build it in my suggester class using the same classes and structure. Is there a better way? This feels hacky and brittle