Skip to content
AstrosDocs
Open app
Skip to Content
UI SDK

Install the UI SDK

Install the browser package and inspect the example application.

The published client depends on a separately hosted iframe. Check the panel availability notice before starting an integration.

Installation

Install the browser component in your frontend project.

npm i navi-web-component

Usage

Import the client from browser-side code. In a server-rendered application, initialize the singleton after the browser has mounted the page.

import { SwapPanelClient } from 'navi-web-component'

Demo

Use the example project to inspect the host application and the component repository to inspect the client. Running the example locally still requires a working hosted panel.

Connect a wallet

Follow the panel reference for the connection and signing callbacks. To test a quote without a wallet or the hosted panel, use the API quick start.

On this page