The Tooltip component is used to show more content of a target.
The Tooltip component is used to describe icon buttons.
In some cases tooltips are used to show more content, this should
be used cautiously since it is hard to be completely accessible.
Each IconButton should always be wrapped in a Tooltip.
Use with caution, it’s hard to be completely accessible.
Use with caution, it’s hard to be completely accessible.
The Tooltip can be positioned on the following positions using the position prop:
Position.TOPPosition.TOP_LEFTPosition.TOP_RIGHTPosition.BOTTOMPosition.BOTTOM_LEFTPosition.BOTTOM_RIGHTPosition.LEFTPosition.RIGHTFor a Tooltip the only really useful sides are TOP, RIGHT, BOTTOM and LEFT as shown below.
In some cases you may want to only show a Tooltip when a certain condition is true. You can accomplish this by
manually hiding the Tooltip with the isShown prop when it should never be shown, and leaving the component uncontrolled
when you want it to display on hover (standard behavior).