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>
);
}