Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.layerswap.io/llms.txt

Use this file to discover all available pages before exploring further.

The onBackClick event fires when the user clicks the back button inside the widget.
<LayerswapProvider
  callbacks={{
    onBackClick: () => {
      console.log("User navigated back")
    },
  }}
>
  <Swap />
</LayerswapProvider>

Callback Argument Value

None