PET for developers
  • Listing
    • 🐩Poodl Exchange
      • 📃Listing Criteria
      • 🤝Application Procedure
      • 🚀Get ready to launch
      • 🎨Media kit
  • Whitelabel
    • Your DeFi aggregator
      • ✨Features
    • 🛠️Quick Start
      • 💻InitPoodlApp
      • 💻PoodlApp
    • ⚙️Basic settings
    • 🎨Advanced UI overrides
    • 📬Events
    • 📖Storybook
    • ☀️ Demo
    • Release Notes
Powered by GitBook
On this page
  • NPM Package
  • Installation
  • Import
  • Rendering
  • Summary
  1. Whitelabel
  2. Quick Start

PoodlApp

Add Poodl White Label to a project using React.

PreviousInitPoodlAppNextBasic settings

Last updated 1 year ago

NPM Package

https://www.npmjs.com/package/@poodl/widget?activeTab=readme

Installation

From the root of your project, if you use YARN, run:

yarn add @poodl/widget

If you use NPM, run:

npm i @poodl/widget

Import

Import the widget with:

import { PoodlApp } from "@poodl/widget";

Rendering

You can now render the widget as a component with

<PoodlApp {...config} />

where config is an object specifying all the customizations. Learn more about that in the .

Note that if you do not specify any custom configuration, you will get the default ones.

Summary

Once you have installed the package with YARN or NPM, add the following code to one of your pages to render the widget with default options.

import { PoodlApp } from "@poodl/widget";

export default function App() {
  return (
    <div className="App">
      <PoodlApp />
    </div>
  );
}
🛠️
💻
implementation walkthrough