For that you can use the dynamic components extension -
This extension has all the required blocks to set the button properties,
alternatively, if you have a button in the designer, you can use the “Any Components” blocks to set the button’s properties