Customizing the appearance of the Particle Wallet modal.
customStyle
takes the following parameters, all of which impact the appearance of the wallet modal:
ModeStyle
object provides a flexible way to customize the look and feel of the wallet modal and transaction popups. You can tailor the interface to match your brand by adjusting the following properties:
customStyle
object within the plugins
array in the ConnectKitProvider
configuration.
AuthCoreContextProvider
from @particle-network/authkit
. Within this component, you’ll need to head into the customStyle
object within the wallet
parameter on options
.
With this in mind, take a look at the below example for further insight into what a complete utilization of most of the above parameters looks like (example of a configuration for customStyle
):
wallet
property of AuthCoreContextProvider
(from Particle Auth) and designate a position through entryPosition
, which takes EntryPosition
from @particle-network/wallet
.
You have the choice between opening the wallet in the bottom right (EntryPosition.BR
), bottom left (EntryPosition.BL
), top right (EntryPosition.TR
), or top left (EntryPosition.TL
).
openWallet()
method imported from useAuthCore()
triggers the opening of the wallet modal, independent from the default button referenced above.
You can create your own custom wallet entry, such as a button labeled Open Wallet. When clicked, this button will trigger the modal using the openWallet()
method.
visible
property to false
in AuthCoreContextProvider
if you want to hide the default Particle Button.