Hooks
useOpenConnectModal
Hook for opening the connect modal
Import
Usage
Return Type: UseOpenConnectModalReturnType
The hook returns an object with the following properties:
Properties
setOpenConnectModal
(isOpen: boolean) => void
Function to open or close the Connect modal.
Parameters:
Parameter | Type | Description |
---|---|---|
isOpen | boolean | Whether the modal should be open (true ) or closed (false ) |
openConnectModalState
boolean
The current open state of the Connect modal (true
if open, false
if closed).
Notes
This hook provides methods to control the Connect modal that allows users to connect their wallets to your application. The Connect modal provides various wallet connection options including Sequence wallet and external wallets.
Was this page helpful?