Tooltip
Last updated
Last updated
Type: Custom Component
Delay
long
The amount of time, in milliseconds, to wait before the tooltip appears after hovering over an element.
FadeTime
long
The speed at which the tooltip fades in and out. A lower value results in a faster fade, while a higher value makes the transition slower.
StartHidden
bool
Determines whether the tooltip starts hidden or visible. If true
, the tooltip will remain hidden until triggered by user interaction.
FollowMouse
long
Specifies whether the tooltip should follow the mouse cursor. When set to true
, the tooltip will move with the cursor. When set to false
, the tooltip will position itself relative to the hovered element, aligning to the top, bottom, right, or left.
BackgroundColor
UIColor
Defines the background color of the tooltip.
BorderColor
UIColor
Defines the border color of the tooltip.
When attached to an element, it triggers the display of a tooltip on hover or focus events.
tooltip
Tooltip
The tooltip to show/hide.
The Tooltip is a basic feature on its own, so we've provided a default tooltip to cover most use cases. You can refer to the TooltipDemo scene for setup guidance.
tooltip
Tooltip
The tooltip to show/hide.
image
VisualElement
VisualElement
to place inside image slot.
title
VisualElement
VisualElement
to place inside title slot.
body
VisualElement
VisualElement
to place inside body slot.
bottom
VisualElement
VisualElement
to place inside bottom slot.
bgColor
UIColor
The background color of the tooltip.
borderColor
UIColor
The border color of the tooltip.