Elements
Tooltips - Done
overview this tooltip system allows you to easily add tooltips to any element (e g \<div>, \<button>, \<a>, etc ) it works by detecting elements with the data tippy content attribute when the page loads optionally, you can specify the tooltip’s position using the data placement attribute dependencies some dependencies are taken care of by global dependencies and are provided here for reference module global depenedency tippy js yes tippy css yes how it works initialization on page load, the system automatically finds elements with the data tippy content attribute the value of data tippy content is used as the text for the tooltip optional positioning by default, tooltips appear at the bottom of the element to customize the position, use the data placement attribute supported values are top top start top end right right start right end bottom default if not provided bottom start bottom end left left start left end styling tooltips follow a predefined style, including background color, text color, padding, font size, and arrow styling these are controlled through css variables for consistency how to use tooltips can be used anywhere in the app by simply adding attributes to a element attributes attribute required description data tippy content required the text displayed in the tooltip data placement optional the position of the tooltip ( top , bottom , left , or right ) if data placement is not included, the tooltip will appear below the element (bottom) supported elements tooltips can be added to any html element, including \<div> \<button> \<a> (links) \<span> example usage basic tooltip add the data tippy content attribute to an element the value of the attribute becomes the tooltip text hover over me custom tooltip placement to control where the tooltip appears, add the data placement attribute with one of the supported values hover over this div