The properties object.
The child components to be rendered within the provider.
The client instance for interacting with the swap panel.
Optional
defaultTheme?: ThemeThe default theme for the widget, either "dark" or "light".
Optional
onClickConnect?: () => voidCallback function to handle the connect button click event.
Optional
onHide?: () => voidCallback function to handle the widget hide event.
Optional
onReady?: (cb: () => void) => voidCallback function to handle the widget ready event.
Optional
onShow?: () => voidCallback function to handle the widget show event.
Callback function to handle transaction signing.
Optional
onSwapSuccess?: (event: SwapSuccessEvent) => voidCallback function to handle the swap success event.
Optional
operator?: stringThe operator's address.
The NaviWidgetProvider component that wraps its children with the NaviWidgetContext provider.
NaviWidgetProvider component that provides context and manages the state and events for the Navi widget.