Style Web3Button #2113
-
Hi guys I was struggling to style the web3Button on a react typescript app but there's no way to change padding or width or border, do you have a solution?? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
I would also like to know if it's possible to define the dimensions for the web3button. Just padding would do. @0xasimetriq got any ideas? Theming options are confined only to styling (https://docs.walletconnect.com/2.0/web/web3modal/react/wagmi/theming#general-style-variables) |
Beta Was this translation helpful? Give feedback.
-
You can create your own button and handle the modal with useWeb3Modal hook Here an example |
Beta Was this translation helpful? Give feedback.
-
Thanks for the prompt reply. It would take an enormous amount of time to re-create what web3button has (ENS / Balance and so on), just to get exposure to padding. Can you please consider adding padding to the variables? That's all it takes to get dimensional exposure.. |
Beta Was this translation helpful? Give feedback.
-
I agree, even just being able to add padding would be very useful. |
Beta Was this translation helpful? Give feedback.
You can create your own button and handle the modal with useWeb3Modal hook
https://docs.walletconnect.com/2.0/web/web3modal/react/wagmi/hooks#useweb3modal
Here an example
https://github.com/WalletConnect/web3modal-examples/blob/main/web3modal-wagmi-react/src/components/CustomButton.jsx