packages/react-components/react-tooltip/library/docs/MIGRATION.md
This Migration guide is a work in progress and is not yet ready for use.
TooltipHost is replaced by Tooltip itself, as the wrapper around the element that should receive a tooltip.
Tooltip
calloutProps
isBeakVisible => withArrowbeakWidth => Not supported.gapSpace => Not supported.doNotLayer => Not supported. Tooltips are always layered by rendering in a Portal.setInitialFocus => Not supported. Tooltips can't be focused, by design.componentRef => Not supported. Tooltips can be controlled declaratively with props like visible, instead of using an imperative API like componentRef.delay => showDelaydirectionalHint => positioning
topLeftEdge => positioning="above-start"topCenter => positioning="above"topRightEdge => positioning="above-end"topAutoEdge => Not supportedbottomLeftEdge => positioning="below-start"bottomCenter => positioning="below"bottomRightEdge => positioning="below-end"bottomAutoEdge => Not supportedleftTopEdge => positioning="before-top"leftCenter => positioning="before"leftBottomEdge => positioning="before-bottom"rightTopEdge => positioning="after-top"rightCenter => positioning="after"rightBottomEdge => positioning="after-bottom"directionalHintForRTL => Automatic based on whether the element is in an RTL context according to FluentProvider.maxWidth => Supported only through CSS styling of the content slot.onRenderContent => Set the content slot to a custom render function.TooltipHost => The tooltip itself is the "host".
closeDelay => hideDelayhostClassName => Not needed because there is no element rendered inline by TooltiponTooltipToggle => onVisibleChangeoverflowMode => Not supported. If this behavior is needed, the tooltip's visibility can be controlled using the visible prop and onVisibleChange event.The v9 Tooltip swaps the meaning of children between content and trigger. In v0, Tooltip's children is the tooltip content, and its trigger is a prop. In v9, that is swapped: Tooltip's children is the trigger, and its content is a prop.
Tooltip
contenttrigger => childrendefaultOpen => Not supported. The tooltip's visibility can be controlled using the visible prop and onVisibleChange event.mountNode => Not supportedopen => visibleonOpenChange => onVisibleChangepointing => withArrowmouseEnterDelay => showDelaymouseLeaveDelay => hideDelaysubtle={true} = appearance="normal" (default)subtle={false} => appearance="inverted"positioning prop:
flipBoundary => positioning.flipBoundaryoffset => positioning.offsetoverflowBoundary => positioning.overflowBoundarypopperRef => positioning.popperRefposition => positioning.positionalign => positioning.alignpositionFixed => positioning.positionFixedtarget => positioning.target