0.0.5 • Published 2 years ago

@fevertokens/ft3 v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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

PropTypeDescriptionDefault
collection-idstringCollection idundefined
token-idstringToken idundefined
textstringButton textFt pay
bg-colorstringButton background color#FF0000
text-colorstringButton text color#ffffff

For more information about FeverTokens, please visit FeverTokens.

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago