Tooltips are fun! Ro:Kit makes it very easy to add a tooltip to your site.
Just add data-tooltip-[top|left|bottom|right]="lorem
ipsum" to
your
HTML tag and the tooltip will appear when hovered over.
If you want to display the tooltip without hovering over the element just add class="static-tooltip" to the tag with tooltip data
attribute.
Caveat: when adding tooltips to
Ro:Kit buttons
(or
any
elements using
::before and ::after pseudo selectors) you should warp those elements in an
inline-block
element
and add
the tooltip data attribute to the wrapper.