Installing the Widget

Guide for installing widget in your application

📘

Widget API Key

To use the widget you need to get Widget API Key & Widget API Key Name. Please contact us on Discord to get yours!

Installation

Install the Brinkninja Widget npm package:

npm install @brinkninja/widgets

or

yarn install @brinkninja/widgets

or

pnpm add @brinkninja/widgets

Adding widget to your application

import '@brinkninja/widgets/styles.css' // Only for animations
import { RecurringSwapWidget } from '@brinkninja/widgets'
// ...

<RecurringSwapWidget
  apiKey="apiKey"
  apiKeyName="apiKeyName"
  appName="apiKeyName"
  // other config options
/>