react-line-social

v0.3.0
Line Social Plugins in React
react line social share friend like

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.

npm i react-line-social

Metadata

  • MIT
  • Whatever
  • szchenghuang
  • released 10/5/2017

Downloads

Maintainers