Install

bower install yan.js

Demo

var target = document.getElementById('demo-btn');
Yan.init(target, {
  onSelect: function(emoticon) {
    document.getElementById('demo-input').value += emoticon + ' ';
  }
});

Usage

Head over to the minimal example.