base-twitter-link
A basic link to your Twitter built with base-element
Install
$ npm install --save base-twitter-link
Usage
var TwitterLink =
@bendrucker
API
new TwitterLink([el])
-> link
el
Type: HTMLElement
The optional HTML element to append to.
link.render(username)
-> vdom
username
Required
Type: string
/ object
Your username. Optionally, pass an object with properties for the <a>
element like title
to override the defaults.
link.toString(username)
-> html
Same signature as link.render
, returning an html string instead of vdom.
License
MIT © Ben Drucker