How to create email type factory template?

Hi @nikku

I am working on bpmn-js-properties-panel
and
I have a scenario where I am defining mail properties (To , From, Cc, Subject…).

I want to define new HTML template using EntryFactory where fields will populate according to the input type of field (for subject field the type should be textarea)

All these I want to define in the new tag.

The Tab I can define but how to define the HTML structure so that user will get all fields with proper input type.

Can you suggest me the way to achieve this scenario?