Blocknative Web3-Onboard
Capsule works as an easy add-on to Blocknative's Web3-Onboard Library. If you're already using Web3-Onboard, you can add Capsule as an option in just a few lines of code.
The key integration differences to be aware of are the following:
CapsuleInitOptions
is the type passed into thecapsuleModule
. Here is the type definition:modalProps
takes in properties that would otherwise be passed to the CapsuleModal, such astheme
andoAuthMethods
constructorOpts
takes in properties that would otherwise be passed as the third argument to instantiate theCapsule()
object. See the list
For more information on getting set up with Web3-Onboard, check out the docs
Here's an example:
Last updated