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

# onMenuNavigationChange

> Triggered when the user navigates inside the widget menu.

The `onMenuNavigationChange` event fires when the user navigates to a different section inside the widget's menu — for example, opening the transaction history.

```tsx theme={null}
<LayerswapWidget
  config={widgetConfig}
  callbacks={{
    onMenuNavigationChange: (path) => {
      console.log("Widget navigated to:", path)
    },
  }}
/>
```

### Callback Argument Value

```TypeScript theme={"system"} theme={null}
type MenuPath = '/' | '/transactions' | '/campaigns'
```

* `/` — menu home
* `/transactions` — transaction history
* `/campaigns` — campaigns
