1.0.5 • Published 1 year ago
starklink v1.0.5
Intro
A library of react components for Follow or chat on Web3MQ
Feature
- Follow Button
- Chat Button
Install
npm i starklink
or
yarn add starklink
Usage
FollowButton
import React from 'react';
import {FollowButton, ChatButton} from 'starklink';
function App() {
return (
<div className='app_container'>
<FollowButton targetWalletAddress='0x63dc40a92a63da67bf635bd3c8288a719a029bde' targetWalletType='eth'/>
</div>
);
}
export default App;
ChatButton
import React from 'react';
import {FollowButton, ChatButton} from 'starklink';
function App() {
return (
<div className='app_container'>
<ChatButton targetWalletAddress='0x63dc40a92a63da67bf635bd3c8288a719a029bde' targetWalletType='eth'/>
</div>
);
}
export default App;
Api
ChatButton
The properties of the ChatButton are described as follows:
Property | Description | Type | Default | required |
---|---|---|---|---|
targetWalletAddress | wallet address | Wallet Address | - | true |
targetWalletType | wallet type | WalletType | - | true |
FollowButton
The properties of the FollowButton are described as follows:
Property | Description | Type | Default | required |
---|---|---|---|---|
targetWalletAddress | wallet address | Wallet Address | - | true |
targetWalletType | wallet type | WalletType | - | true |