@kwentapay/web-client-react
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

@kwentapay/web-client-react

A React component library to integrate the Kwenta GUI directly into your web application.

Installation

Package manager Command
NPM npm install @kwentapay/web-client-react
Yarn yarn add @kwentapay/web-client-react
PNPM pnpm install @kwentapay/web-client-react

Example

import { Kwenta } from "@kwentapay/web-client-react";

const transactionUrl =
  "https://api.kwenta.st/o/4e83556f-a105-496e-8457-cea37d5bc173";

const App = () => (
  <Kwenta
    url={transactionUrl}
    onPayerPrepaid={() => alert("Current payer has prepaid successfully")}
    onPayersInvited={() => alert("Current payer has invited the other payers")}
  />
);

export default App;

See also

License

This project is licensed under the MIT License.

Readme

Keywords

none

Package Sidebar

Install

npm i @kwentapay/web-client-react

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

154 kB

Total Files

6

Last publish

Collaborators

  • _bbenoist_