react-social-sharebuttons(LINE) 日本語ドキュメント
react-hatenabookmark-buttonとreact-line-buttonは、 react-social-sharebuttonsに統合されました。
react-social-sharebuttons(LINE)
Simple React components for LINE Button.
- このLINEボタンはスマートフォン向けです。 PCユーザーに対しては正常に動作しません。
インストール
npm install --save react-social-sharebuttons
使用例
import { LINEButton } from 'react-social-sharebuttons'; class App extends React.Component { render() { let text = "LINEで送る"; let image = "36x60"; return ( <LINEButton text={text} image={image} /> ); } }
プロパティ
text
シェアするテクストです。 原則的にはURLとタイトルのみ指定可能です。
image
LINEボタンとして使用する画像を指定できます。
20x20
30x30
36x60
40x40
82x20
MIT licensed