Tooltips
Tooltips on links
Hover over the links below to see tooltips.
Placeholder text to demonstrate someinline linkswith tooltips. This is now just filler, no killer. Content placed here just to mimic the presence ofreal text. And all that just to give you an idea of how tooltips would look when used in real-world situations. So hopefully you've now seen howtooltips on linkscan work in practice, once you use them onyour ownsite or project.
Disabled Elements
Elements with the disabled
attribute aren’t interactive, meaning users cannot focus, hover, or click them to trigger a tooltip (or popover). As a workaround, you’ll want to trigger the tooltip from a wrapper<div>
or <span>
, ideally made keyboard-focusable usingtabindex="0"
, and override thepointer-events
on the disabled element.
Hover Elements
Elements with the disabled
attribute aren’t interactive, meaning users cannot focus, hover, or click them to trigger a tooltip (or popover). As a workaround, you’ll want to trigger the tooltip from a wrapper<div>
or <span>
, ideally made keyboard-focusable usingtabindex="0"
, and override thepointer-events
on the disabled element.
Directions
Hover over the buttons below to see the four tooltips directions: top, right, bottom, and left.
HTML Tags
And with custom HTML added:
Color Tooltips
We set a custom class with ex.data-bs-custom-class="primary-tooltip"
to scope our background-color primary appearance and use it to override a local CSS variable.
Primary TooltipDanger TooltipInfo TooltipSuccess TooltipSecondary TooltipWarning TooltipDark Tooltip