react-coinbase-commerce icon indicating copy to clipboard operation
react-coinbase-commerce copied to clipboard

Make Button component overridable with a component from a prop

Open ssijak opened this issue 4 years ago • 1 comments

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.

ssijak avatar Feb 10 '21 10:02 ssijak

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.

rahulgi avatar Feb 10 '21 19:02 rahulgi