The default slot requires a root element. This means to use just text,
you must wrap in span or a similar element. Alternatively,
use triggerText prop to pass a string.
The open state of the tooltip when it is initially rendered.
Use when you do not need to control its open state.
open
boolean
The controlled open state of the tooltip.
delayDuration
100
number
Override the duration given to the Provider to customise
the open delay for a specific tooltip.
disableHoverableContent
boolean
Prevents Tooltip.Content from remaining open when hovering.
Disabling this has accessibility consequences. Inherits
from Tooltip.Provider.
disableClosingTrigger
false
boolean
When true, clicking on trigger will not close the content.
disabled
false
boolean
When true, disable tooltip
ignoreNonKeyboardFocus
false
boolean
Prevent the tooltip from opening if the focus did not come from
the keyboard by matching against the :focus-visible selector.
This is useful if you want to avoid opening it when switching
browser tabs or closing a dialog.
content
string
float
TooltipContentProps
forceMount?: boolean
Used to force mounting when more control is needed. Useful when
controlling animation with Vue animation libraries.
ariaLabel?: string
By default, screenreaders will announce the content inside
the component. If this is not descriptive enough, or you have
content that cannot be announced, use aria-label as a more
descriptive label. Defaults to String.
asChild?: boolean
Change the default rendered element for the one passed as a child, merging their props and behavior.Read our Composition guide for more details.
as?: AsTag | Component
The element or component this component should render as. Can be overwritten by asChild. Defaults to "div".
side?: "top" | "right" | "bottom" | "left"
The preferred side of the trigger to render against when open.
Will be reversed when collisions occur and avoidCollisions
is enabled. Defaults to "top".
sideOffset?: number
The distance in pixels from the trigger. Defaults to 0.
align?: "center" | "start" | "end"
The preferred alignment against the trigger.
May change when collisions occur. Defaults to "center".
alignOffset?: number
An offset in pixels from the start or end alignment options. Defaults to 0.
avoidCollisions?: boolean
When true, overrides the side and align preferences
to prevent collisions with boundary edges. Defaults to true.
collisionBoundary?: Element | (Element | null)[] | null
The element used as the collision boundary. By default
this is the viewport, though you can provide additional
element(s) to be included in this check. Defaults to [].
The distance in pixels from the boundary edges where collision
detection should occur. Accepts a number (same for all sides),
or a partial padding object, for example: { top: 20, left: 20 }. Defaults to 0.
arrowPadding?: number
The padding between the arrow and the edges of the content.
If your content has border-radius, this will prevent it from
overflowing the corners. Defaults to 0.
sticky?: "partial" | "always"
The sticky behavior on the align axis. partial will keep the
content in the boundary as long as the trigger is at least partially
in the boundary whilst "always" will keep the content in the boundary
regardless. Defaults to "partial".
hideWhenDetached?: boolean
Whether to hide the content when the trigger becomes fully occluded. Defaults to false.
positionStrategy?: "fixed" | "absolute"
The type of CSS position property to use.
updatePositionStrategy?: "always" | "optimized"
Strategy to update the position of the floating element on every animation frame. Defaults to 'optimized'.