> ## 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.

# onBackClick

> Triggered when the user clicks the back button.

The `onBackClick` event fires when the user clicks the back button inside the widget.

```tsx theme={null}
<LayerswapProvider
  callbacks={{
    onBackClick: () => {
      console.log("User navigated back")
    },
  }}
>
  <Swap />
</LayerswapProvider>
```

### Callback Argument Value

None
