lorisleiva / solana-wallets-vue

Solana wallet integration for Vue 3
https://solana-wallets-vue-demo.netlify.app/
164 stars 62 forks source link

Add slot for Select Wallet button #58

Open IlyaSemenov opened 4 months ago

IlyaSemenov commented 4 months ago

As a developer, I would like to customize <wallet-multi-button /> text (say change it from "Select Wallet" to "Connect Wallet").

Currently, it's practically impossible without overriding the whole 100-liner slot: https://github.com/lorisleiva/solana-wallets-vue/blob/f624f72e85d4a8a5f6358c74c0405a9b09fe8c5f/src/components/WalletMultiButton.vue#L89-L154

While some other buttons have fine-grain slots such as <slot name="dropdown-button">, there is no slot for the primary button.

y4my4my4m commented 1 month ago

@lorisleiva Is this possible to implement? Seems like a minimal change. I'd like to be able to style it (like add tailwind w-full class to the button when in my sub menu)