how to add a widget/component when clicking on a button?

I am making a form for a football scouting report. I want each player to be a card or a component so I can add the ones I need through a button. But I don't know what action to give to the button.

2
8 replies