Coming from Orbiter, you should be aware of the following changes:
position
has been renamed toplacement
. Refer to this sample
Tooltips display additional information upon hover or focus that is contextual, helpful, and nonessential while providing the ability to communicate and give clarity to a user.
A tooltip trigger can be anything.
A tooltip can open at different placements.
A tooltip can be disabled.
A tooltip trigger can update its appearance based on the isOpen value by using TooltipTriggerContext.
While it is not recommended to add a tooltip to a disabled element, it is possible to do so.
The open state can be handled in controlled mode.
Tooltips can be used in Collection items.
The ref for the element which the tooltip positions itself with respect to.
When used within a TooltipTrigger this is set automatically. It is only required when used standalone.
The children of the component.
The CSS className for the element.
The inline style for the element.
A slot name for the component. Slots allow the component to receive props from a parent component.
An explicit null
value indicates that the local props completely override all props received from a parent.
Defines a string value that labels the current element.
Identifies the element (or elements) that labels the current element.
Identifies the element (or elements) that describes the object.
Identifies the element (or elements) that provide a detailed, extended description for the object.
The element's unique identifier. See MDN.
The placement of the element with respect to its anchor element.
Whether the tooltip should be disabled, independent from the trigger.
The delay time for the tooltip to show up. See guidelines.
By default, opens for both focus and hover. Can be made to open only for focus.
Whether the overlay is open by default (controlled).
Whether the overlay is open by default (uncontrolled).
Whether the element should flip its orientation (e.g. top to bottom or left to right) when there is insufficient room for it to render completely.
The placement padding that should be applied between the element and its surrounding container.
The additional offset applied along the main axis between the element and its anchor element.
The additional offset applied along the cross axis between the element and its anchor element.
Handler that is called when the overlay's open state changes.
Coming from Orbiter, you should be aware of the following changes:
position
has been renamed to placement
. Refer to this sample