react-line-social

0.3.0 • Public • Published

react-line-social

Line social plugins in React.

Demo

Install

npm install react-line-social --save

Usage

import { Share, Friend, Like } from 'react-line-social';
 
// Or cherry-pick import.
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.

Package Sidebar

Install

npm i react-line-social

Weekly Downloads

96

Version

0.3.0

License

MIT

Last publish

Collaborators

  • szchenghuang