Aggregated Swaps Modal
Understand how to use the SwapsModal components
If you want to have the Swaps
component inside a modal on your dApp, we recommend you to use the SwapsModal
component. We handle all the states and edge-cases, so you can focus on your dApp!
Usage
Props
isOpen
(required)
isOpen
(required)A state variable for the open state of the modal
setIsOpen
(required)
setIsOpen
(required)A function to change the open state of the modal.
All props of the Swaps
component are supported in SwapsModal
Last updated