so you can see here
That should do what you want to make and with dynamic components. Edit : updated the link. Thanks @Vaibhav