Hi,
When you have a classical form definied via the view.xml, you get the all the info you need to regenerate the as you wish in your custom template (and custom JS).
Is it possible to get the (smart) records and the required attributes to instantiate the component via the ORM/RPC service? How?