coinbase / react-coinbase-commerce

Coinbase Commerce React
Apache License 2.0
93 stars 56 forks source link

Make Button component overridable with a component from a prop #59

Open ssijak opened 3 years ago

ssijak commented 3 years ago

Introduce a "Button" prop on the CoinbaseCommerceButton which will allow us to replace the <button> which is rendered with our own. I use ChakraUI and EmotionCSS, and I just want to render my button easily instead of the current one. I can add it as a child and with some css override it will work, but I will have nested button tags then.

rahulgi commented 3 years ago

Definitely agree that this would be nice! The workaround we're currently using is to hide Coinbase's button using css and then manually trigger the click handler when our button is clicked.