@antefinance/ante-widget-react
TypeScript icon, indicating that this package has built-in type declarations

0.1.2 • Public • Published

Setup and build ante-widget frontend

Install

npm i @antefinance/ante-widget-react

or

yarn add @antefinance/ante-widget-react

Build

npm i
npm run build

Usage

import AnteWidget from '@antefinance/ante-widget-react';
import '@antefinance/ante-widget/dist/widget.css'; // This will import the styles

function Example() {
  ...
  return (
    <div>
      <p>Protocol stats</p>
      <AnteWidget.Protocol name='LlamaPay' chain='0x1' />
      <p>Test results</p>
      <AnteWidget.Test address='0x123' chain='0x1' />
    </div>
  );
}

Readme

Keywords

none

Package Sidebar

Install

npm i @antefinance/ante-widget-react

Weekly Downloads

0

Version

0.1.2

License

MIT

Unpacked Size

12.3 kB

Total Files

8

Last publish

Collaborators

  • antefinance