@fevertokens/ft3
v1.2.0
Published
## Getting Started
Readme
Fevertokens web components
Getting Started
FeverTokens/ft3 is a react component library that allows you to easily integrate FeverTokens features into your website.
Installation
npm install @fevertokens/ft3Usage
ft3 pay component
import React, { useEffect } from 'react'
import ReactDOM from 'react-dom'
import { FT3Pay } from '@fevertokens/ft3'
import '@fevertokens/ft3/dist/style.css'
const App = () => {
return (
<FT3Pay
network="testnet"
collectionId="co_2pH9ZZWKiGuqXT72FVQWinLMzSp"
tokenId="1"
text="FT Pay"
bgColor="#FF0000"
textColor="#ffffff"
/>
)
}
ReactDOM.render(<App />, document.getElementById('root'))Documentation
ft3 pay component
| Prop | Type | Description | Default |
| -------------- | -------- | ----------------------- | ----------- |
| collectionId | string | Collection id | undefined |
| tokenId | string | Token id | undefined |
| text | string | Button text | Ft pay |
| bgColor | string | Button background color | #FF0000 |
| textColor | string | Button text color | #ffffff |
| network | string | mainnet or testnet | 'mainnet |
For more information about FeverTokens, please visit FeverTokens.
