I see!
If you want to generate buttons and hide them using a button it isn’t too difficult. Here is a post about it: How can i add buttons dynamically on my UMG Widget?. There are plenty of tutorials online as well.
If you want to generate buttons you can use the Button Class with the Class of Button to then construct the Button and add it to a panel in the widget. In this case I have a VerticalBox Panel which I add the button to. You can use the style to modify the buttons look and add further widgets such as text, etc.
The method I linked from the other post is great if you want to add a custom widget or a widget that has a particular style already setup for it. Basically it allows you to “import” an already made button, instead of constructing a button from the base class.