tkst-line

1.0.1 • Public • Published

tkst-line

"Line" Button tag component for riot.js.

It is displayed only in the case of mobile

DEMO

Use

$ npm install tkst-line --save

Markup

<tkst-line message="takusuta :) https://takusuta.com" image="./linebutton_82x20.png"></tkst-line>
<script src="..../riot.min.js"></script>
<script src="..../tkst-line.min.js"></script>
<script>
  riot.mount('tkst-line');
</script>
 
or
 
<tkst-line></tkst-line>
<script src="..../riot.min.js"></script>
<script src="..../tkst-line.min.js"></script>
<script>
  riot.mount('tkst-line', {
    message: "takusuta :) https://takusuta.com",
    image: "./linebutton_82x20.png"
  });
</script>

Options

  • message : Message string to be sent to the LINE
  • image : Image filepath of LINE Button

Demo

$ open ./demo/index.html

Develop

Build

$ npm install gulp
$ npm install .
$ gulp compress

Watch

$ gulp

Test

node.js

$ npm test

LICENSE

@see : LICENSE

Package Sidebar

Install

npm i tkst-line

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • fkei