Is possible make custom popup template with configurable children?

In traditional development we usually create custom popup template with title and some buttons, and we pass custom content inside it.
So I have services page, I want to have group of inputs for create/edit and i want use some reusabale component.

I expect to add this group in this reusable component as child in services page.
Is it possible?