react-line-social
Line social plugins in React.
Install
npm install react-line-social --save
Usage
import { Share, Friend, Like } from 'react-line-social';
import Share from 'react-line-social/share';
import Friend from 'react-line-social/friend';
import Like from 'react-line-social/like';
<Share />
<Share type='share-b' />
<Friend lineid="@lineteamjp" />
<Friend lineid="@lineteamjp" count />
<Friend lineid="@lineteamjp" home />
<Friend lineid="@lineteamjp" count home />
<Like />
<Like share />
<Like lineid="@lineteamjp" />
Props
Share
- style - Object.
- className - String.
- locale - 'en' | 'ja' | 'zh-TW' | 'th' | 'id'. Defaut:
zh-TW
. - type - 'share-a' | 'share-b' | 'share-c' | 'share-d' | 'share-e'. Defaut:
share-a
. - url - String. Default:
window.location.href
.
Friend
- style - Object.
- className - String.
- lineid - String. Required.
- locale - 'en' | 'ja' | 'zh-TW' | 'th' | 'id'. Defaut:
zh-TW
. - count - Boolean.
- home - Boolean.
Like
- style - Object.
- className - String.
- lineid - String.
- locale - 'en' | 'ja' | 'zh-TW' | 'th' | 'id'. Defaut:
zh-TW
. - share - Boolean.
- url - String. Default:
window.location.href
.
License
MIT. See LICENSE.md for details.