0.0.5 • Published 2 years ago
@fevertokens/ft3 v0.0.5
Fevertokens web components
Getting Started
FeverTokens/ft3 is a web component library that allows you to easily integrate FeverTokens features into your website.
Installation
npm install @fevertokens/ft3
Usage
ft3 pay component
import React, {useEffect} from 'react';
import ReactDOM from 'react-dom';
import {
applyPolyfills,
defineCustomElements as defineProductMgmtExp,
} from "@fevertokens/ft3/loader";
const App = () => {
useEffect(() => {
applyPolyfills().then(() => {
defineProductMgmtExp(window);
});
}, []);
return <ft3-pay
collection-id="co_2Vd75T0y1TP0jnOM2DiODW4qsCD"
token-id="1"
text="Pay"
bg-color="#000000"
text-color="#ff0000"
/>
}
ReactDOM.render(
<App />,
document.getElementById('root')
);
Documentation
ft3 pay component
Prop | Type | Description | Default |
---|---|---|---|
collection-id | string | Collection id | undefined |
token-id | string | Token id | undefined |
text | string | Button text | Ft pay |
bg-color | string | Button background color | #FF0000 |
text-color | string | Button text color | #ffffff |
For more information about FeverTokens, please visit FeverTokens.