Provides inline tooltip text around any element.
blockDisplays the element as a block, making it take up the full width of its container.
focusableMakes the component focusable, thereby putting it in the tab order of the keyboard.
This is only meant to be used when the q2-tooltip is wrapped around an element that is not focusable (e.g., icons, static text, badges, etc.).
immediateWhether to show the tooltip immediately upon hover.
labeltext that is displayed when the tooltip is activated.
multilineEnables the use of multi-line tooltips with a default max-width of 200px.
persistentDisplays the tooltip persistently.
positionThe position of the tooltip based on cardinal and intercardinal directions.
This component uses other components in the Tecton library, including:
Other components in the Tecton library use this component, including:
q2-meterInitial Release
aria-label of the tooltipped element, so only tooltip focusable elements (e.g., links and buttons) to ensure that keyboard-only users can access the tooltip.aria-label of the tooltipped element, so any other text within the tooltipped element, such as a button label, is not announced to screen readers - only the tooltip content.The following CSS variables are available to override the default theme styles of the q2-tooltipcomponent.