0.3.0 • Published 7 years ago

react-line-social v0.3.0

Weekly downloads
111
License
MIT
Repository
github
Last release
7 years ago

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.

0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago