Bando Docs
Launch AppLearn More
  • Bando for Developers
    • The On-chain Spending Protocol
    • Quickstart
    • Glossary
    • Use Cases
    • Protocol Architecture
      • Payment Reference Validation
      • Order Request
      • Order Fulfillment
      • Refunds
  • Spending Widget
    • Widget Quick Start
    • Installation
    • Configuration
    • Customization
    • Localization
    • Wallet Management
    • Framework Integration
      • Next.js
      • Svelte
  • Fulfiller API
    • Get Started with the API
    • Authentication
    • Guides
      • Get Available Products
      • Get a Payment Reference
      • Validate a payment reference
      • Get a Quote
      • Get Available Tokens for a Chain
    • API Reference
  • EVM Smart Contracts
    • EVM Smart Contracts | Architecture
    • Contracts
      • Core
        • BandoERC20Fulfillable
        • BandoFulfillmentManager
        • BandoFulfillable
        • BandoRouter
        • FulfillmentTypes
      • Libraries
        • FulfillmentRequestLib
        • SwapLib
      • Periphery
        • ERC20TokenRegistry
        • FulfillableRegistry
      • Proxy
        • Upgradeability
    • Security
      • Access Control
      • Security Considerations
      • Rekt Test
      • Audits
    • Code
Powered by GitBook
On this page
  • Overview
  • Features
  • Installation
  • Getting Started
  • 1. Import and Configure the Widget
  • 2. Render the Widget
  • Next Steps

Was this helpful?

Edit on GitHub
  1. Spending Widget

Widget Quick Start

Overview and installation guide for the Bando Spend Widget.

Overview

The Bando Widget is a collection of prebuilt UI components designed to simplify the purchase of products and payment for services across various institutions using tokens and other digital assets. It provides flexible styling options to seamlessly integrate with your web application, helping you enhance your platform’s functionality and attract a broader user base.

Features

  • Supports all ecosystems, chains, and products available in Bando.

  • Flexible styling options to match your app's design.

  • Built-in wallet management UI, with the option to use your own (Wagmi, Solana).

  • Fully localized UI, adapting to your users’ preferred language.

  • Compatibility with multiple frontend frameworks:

    • React, Next.js, Vue, Nuxt.js, Svelte, Remix, Gatsby, Vite, CRA, RainbowKit.


Installation

To install the Bando Widget, follow the instructions for your package manager:

npm install @bandohq/widget wagmi @bigmi/react @solana/wallet-adapter-react @tanstack/react-query
yarn add @bandohq/widget wagmi @bigmi/react @solana/wallet-adapter-react @tanstack/react-query
pnpm add @bandohq/widget wagmi @bigmi/react @solana/wallet-adapter-react @tanstack/react-query
bun add @bandohq/widget wagmi @bigmi/react @solana/wallet-adapter-react @tanstack/react-query

Getting Started

Once the widget is installed, you can integrate it into your application with the following steps:

1. Import and Configure the Widget

Create a configuration object to customize the widget’s appearance and behavior:

import { BandoWidget, WidgetConfig } from '@bandohq/widget';

const widgetConfig: WidgetConfig = {
  theme: {
    container: {
      border: '1px solid rgb(234, 234, 234)',
      borderRadius: '16px',
    },
  },
};

2. Render the Widget

Use the BandoWidget component inside your app, passing the config and integrator props:

export const WidgetPage = () => {
  return <BandoWidget integrator="<your_app_name>" config={widgetConfig} />;
};

Next Steps

  • Guides:


This guide should give you everything you need to get started with the Bando Widget. If you encounter any issues, refer to our documentation or reach out to our support team.

PreviousRefundsNextInstallation

Last updated 2 months ago

Was this helpful?

– Learn how to adjust settings.

– Customize the language support.

– Modify UI elements to match your brand.

– Manage wallets with built-in options or external solutions.

Configure the Widget
Localization
Customize Styles
Wallet Management
Next.js
Svelte