Tooltip
The Tooltip UI component is a floating label that briefly explains the function of a user interface element.
Preview

Code example
render('Checkout::Dynamic::Render', (props) => {
return (
<Tooltip title="This product is designated as a special discount item, offered at a reduced price for a limited period.">
<Icon source="question"></Icon>
</Tooltip>
);
});
TooltipProps
tip
Optional properties are marked with a ?. Properties without a ? are required.
title
string
The tooltip text to be displayed.
children
React.ReactNode
UI element that triggers the tooltip (such as a button or icon).
placement?
top
top-start
top-end
right-end
right-start
bottom
bottom-start
bottom-end
left-start
left-end
Default: top
The position where the tooltip text is displayed.
trigger?
hover
click
Default: hover
The method by which the tooltip is triggered.
Was this article helpful to you?