Morning interview question

How would you build a generic form component