Skip to main content

Tooltip

Tooltip(props: ): ReactElement<WithOptionalTheme<
Tooltip<AsC,FAsC>(props: StyledComponentPropsWithAs<AsC, any, , never, AsC, FAsC>): ReactElement<StyledComponentPropsWithAs<AsC, any, , never, AsC, FAsC>, string | JSXElementConstructor<any>>

Parameters

(Mandatory parameters are in bold)
ParametersTypeDescription
props
asundefined
asundefined
childrenReactNode
childrenReactNode
childrenReactNode
childrenReactNode
classNamestring
classNamestring
classNamestring
classNamestring
closeOnOutsideClickbooleanIf true, a click outside the trigger element closes the tooltip
closeOnOutsideClickbooleanIf true, a click outside the trigger element closes the tooltip
closeOnOutsideClickbooleanIf true, a click outside the trigger element closes the tooltip
closeOnOutsideClickbooleanIf true, a click outside the trigger element closes the tooltip
closeOnTriggerHiddenbooleanWhether to close the tooltip when its trigger is out of boundary
closeOnTriggerHiddenbooleanWhether to close the tooltip when its trigger is out of boundary
closeOnTriggerHiddenbooleanWhether to close the tooltip when its trigger is out of boundary
closeOnTriggerHiddenbooleanWhether to close the tooltip when its trigger is out of boundary
contentReactNode
contentReactNode
contentReactNode
contentReactNode
defaultVisiblebooleanWhether tooltip is shown by default
defaultVisiblebooleanWhether tooltip is shown by default
defaultVisiblebooleanWhether tooltip is shown by default
defaultVisiblebooleanWhether tooltip is shown by default
delayHidenumber
delayHidenumber
delayHidenumber
delayHidenumber
delayShownumberDelay in showing the tooltip (ms)
delayShownumberDelay in showing the tooltip (ms)
delayShownumberDelay in showing the tooltip (ms)
delayShownumberDelay in showing the tooltip (ms)
followCursorbooleanWhether to make the tooltip spawn at cursor position
followCursorbooleanWhether to make the tooltip spawn at cursor position
followCursorbooleanWhether to make the tooltip spawn at cursor position
followCursorbooleanWhether to make the tooltip spawn at cursor position
forwardedAsundefined
forwardedAsundefined
interactivebooleanIf true, hovering the tooltip will keep it open. Normally tooltip closes when the mouse cursor moves out of
the trigger element. If it moves to the tooltip element, the tooltip stays open.
interactivebooleanIf true, hovering the tooltip will keep it open. Normally tooltip closes when the mouse cursor moves out of
the trigger element. If it moves to the tooltip element, the tooltip stays open.
interactivebooleanIf true, hovering the tooltip will keep it open. Normally tooltip closes when the mouse cursor moves out of
the trigger element. If it moves to the tooltip element, the tooltip stays open.
interactivebooleanIf true, hovering the tooltip will keep it open. Normally tooltip closes when the mouse cursor moves out of
the trigger element. If it moves to the tooltip element, the tooltip stays open.
kindbackground | lighter | success | black | blue | green | indigo | lightblue | lightgreen | lightpink | lightyellow | orange | pink | purple | red | teal | white | yellow | dark | light | warning | info | lightest | darker | darkest | danger | primary | secondary | lightred | lightpurple | lightindigo | lightteal | lightorange
kindbackground | lighter | success | black | blue | green | indigo | lightblue | lightgreen | lightpink | lightyellow | orange | pink | purple | red | teal | white | yellow | dark | light | warning | info | lightest | darker | darkest | danger | primary | secondary | lightred | lightpurple | lightindigo | lightteal | lightorange
kindbackground | lighter | success | black | blue | green | indigo | lightblue | lightgreen | lightpink | lightyellow | orange | pink | purple | red | teal | white | yellow | dark | light | warning | info | lightest | darker | darkest | danger | primary | secondary | lightred | lightpurple | lightindigo | lightteal | lightorange
kindbackground | lighter | success | black | blue | green | indigo | lightblue | lightgreen | lightpink | lightyellow | orange | pink | purple | red | teal | white | yellow | dark | light | warning | info | lightest | darker | darkest | danger | primary | secondary | lightred | lightpurple | lightindigo | lightteal | lightorange
mutationObserverOptionsnull | MutationObserverInitOptions to MutationObserver, used internally for updating
tooltip position based on its DOM changes
mutationObserverOptionsnull | MutationObserverInitOptions to MutationObserver, used internally for updating
tooltip position based on its DOM changes
mutationObserverOptionsnull | MutationObserverInitOptions to MutationObserver, used internally for updating
tooltip position based on its DOM changes
mutationObserverOptionsnull | MutationObserverInitOptions to MutationObserver, used internally for updating
tooltip position based on its DOM changes
offsetShorthand for popper.js offset modifier, see https://popper.js.org/docs/v2/modifiers/offset/
offsetShorthand for popper.js offset modifier, see https://popper.js.org/docs/v2/modifiers/offset/
offsetShorthand for popper.js offset modifier, see https://popper.js.org/docs/v2/modifiers/offset/
offsetShorthand for popper.js offset modifier, see https://popper.js.org/docs/v2/modifiers/offset/
onVisibleChange
onVisibleChange
onVisibleChange
onVisibleChange
placementPlacementAlias for popper.js placement, see https://popper.js.org/docs/v2/constructors/#placement
placementPlacementAlias for popper.js placement, see https://popper.js.org/docs/v2/constructors/#placement
placementPlacementAlias for popper.js placement, see https://popper.js.org/docs/v2/constructors/#placement
placementPlacementAlias for popper.js placement, see https://popper.js.org/docs/v2/constructors/#placement
popperOptionsPopperOptions
popperOptionsPopperOptions
popperOptionsPopperOptions
popperOptionsPopperOptions
themeany
themeany
triggernull | TriggerType |Event or events that trigger the tooltip
triggernull | TriggerType |Event or events that trigger the tooltip
triggernull | TriggerType |Event or events that trigger the tooltip
triggernull | TriggerType |Event or events that trigger the tooltip
visiblebooleanUsed to create controlled tooltip
visiblebooleanPartial<>, any>, string | JSXElementConstructor<any>>Used to create controlled tooltip
visiblebooleanUsed to create controlled tooltip
visiblebooleanPartial<>, any>, string | JSXElementConstructor<any>>Used to create controlled tooltip

Return

The return is of type ReactElement<WithOptionalTheme<