JSFiddle - React, Tailwind, and code Playground
HTML
<div><a href="#" data-image="http://lorempixel.com/200/200/sports/" title="">button 1</a></div>
<div><a href="#" data-image="http://lorempixel.com/200/200/food/" title="">button 2</a></div>
<div><a href="#" data-image="http://lorempixel.com/200/200/people/" title="">button 3</a></div>
JavaScript
$( document ).tooltip({
items: "div a",
content: function() {
return '<img src="'+ $(this).data('image') +'" />';
}
});