Tooltip API

API documentation for Tooltip component

TooltipTrigger#

Props#

Defines valid properties in TooltipTrigger component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
style(CSSProperties | ((instance?: ButtonInstance) => CSSProperties)) & (CSSProperties | ((instance?: TooltipTriggerInstance) => CSSProperties))
null
The style to apply to the component.
className(string | ((instance?: ButtonInstance) => string)) & (string | ((instance?: TooltipTriggerInstance) => string))
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptButtonPassThrough & Record<PropertyKey, unknown> & TooltipTriggerPassThrough
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
children(ReactNode | ((instance: ButtonInstance) => ReactNode)) & (ReactNode | ((instance: TooltipTriggerInstance) => ReactNode))
null
The children to render.
size"small" | "large" | "normal"
null
Size of the Button.
severitystring & {} | "secondary" | "info" | "success" | "warn" | "danger" | "contrast" | "help"
null
Severity type of the Button.
variant"link" | "text" | "outlined"
null
Variant of the Button.
plainboolean
null
Whether to show the Button with a plain style.
roundedboolean
null
Whether to show the Button with a rounded style.
raisedboolean
null
Whether to show the Button with a raised style.
iconOnlyboolean
null
Whether to show the Button with a borderless style.
fluidboolean
null
Whether to show the Button with a fluid width.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by TooltipTrigger component.

nametypedefaultdescription
tooltipTooltipInstance
null
The Tooltip component instance.

Interfaces#

Defines passthrough(pt) options of TooltipTrigger component.

nametypedefaultdescription
rootTooltipTriggerPassThroughType<HTMLAttributes<HTMLButtonElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of TooltipTrigger component.

values
ComponentInstance<TooltipTriggerProps, TooltipTriggerState, TooltipTriggerExposes>

TooltipPortal#

Props#

Defines valid properties in TooltipPortal component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
style(CSSProperties | ((instance?: PortalInstance) => CSSProperties)) & (CSSProperties | ((instance?: TooltipPortalInstance) => CSSProperties))
null
The style to apply to the component.
className(string | ((instance?: PortalInstance) => string)) & (string | ((instance?: TooltipPortalInstance) => string))
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptPortalPassThrough & Record<PropertyKey, unknown> & TooltipPortalPassThrough
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
children(ReactNode | ((instance: PortalInstance) => ReactNode)) & (ReactNode | ((instance: TooltipPortalInstance) => ReactNode))
null
The children to render.
elementReactNode
null
The element to be rendered as the portal.
appendToHTMLElement | "body" | "self"
'body'
The DOM element where the portal should be appended to.
visibleboolean
null
Whether the portal is visible or not.
onMounted() => void
null
Callback function to invoke when the portal is mounted.
onUnmounted() => void
null
Callback function to invoke when the portal is unmounted.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by TooltipPortal component.

nametypedefaultdescription
tooltipTooltipInstance
null
The Tooltip component instance.

Interfaces#

Defines passthrough(pt) options of TooltipPortal component.

nametypedefaultdescription
rootTooltipPortalPassThroughType<HTMLAttributes<HTMLDivElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of TooltipPortal component.

values
ComponentInstance<TooltipPortalProps, TooltipPortalState, TooltipPortalExposes>

TooltipContent#

Props#

Defines valid properties in TooltipContent component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: TooltipContentInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: TooltipContentInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<TooltipContentPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: TooltipContentInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by TooltipContent component.

nametypedefaultdescription
tooltipTooltipInstance
null
The Tooltip component instance.

Interfaces#

Defines passthrough(pt) options of TooltipContent component.

nametypedefaultdescription
rootTooltipContentPassThroughType<HTMLAttributes<HTMLButtonElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of TooltipContent component.

values
ComponentInstance<TooltipContentProps, TooltipContentState, TooltipContentExposes>

TooltipArrow#

Props#

Defines valid properties in TooltipArrow component.

nametypedefaultdescription
refRef<unknown>
null
The reference to the component instance.
pIfboolean
true
Whether the component should be rendered.
styleCSSProperties | ((instance?: TooltipArrowInstance) => CSSProperties)
null
The style to apply to the component.
classNamestring | ((instance?: TooltipArrowInstance) => string)
null
The class name to apply to the component.
asstring | number | bigint | boolean | ComponentClass<any, any> | FunctionComponent<any> | ReactElement<unknown, string | JSXElementConstructor<any>> | Iterable<ReactNode, any, any> | ReactPortal | Promise<AwaitedReactNode>
null
The component type to render.
asChildboolean
false
Whether the component should be rendered as a child component.
ptSafeRecord<TooltipArrowPassThrough>
null
The pass-through props to pass to the component
ptOptionsPassThroughOptions
null
The pass-through options to pass to the component
unstyledboolean
null
Whether the component should be rendered without classes.
dtunknown
null
The design token to use for the component.
stylesStylesOptions<ComponentInstance>
null
The styles to use for the component.
childrenReactNode | ((instance: TooltipArrowInstance) => ReactNode)
null
The children to render.
[key: string]any
null
pt-{optionName}-*-
null
Pass through attributes for customizing component. For more info, see Pass Through tab.

Exposes#

Defines the methods and properties exposed by TooltipArrow component.

nametypedefaultdescription
tooltipTooltipInstance
null
The Tooltip component instance.

Interfaces#

Defines passthrough(pt) options of TooltipArrow component.

nametypedefaultdescription
rootTooltipArrowPassThroughType<HTMLAttributes<HTMLButtonElement>>
null
Used to pass attributes to the root's DOM element.

Types#

Instance of TooltipArrow component.

values
ComponentInstance<TooltipArrowProps, TooltipArrowState, TooltipArrowExposes>