Tooltip is used to display content in relation to a target when that target is hovered.
Property | Value(s) |
---|---|
Padding (top, right, bottom, left) | 4 px, 8 px, 4 px, 8 px |
Spacing from trigger | 4 px |
Maximum width | 256 px |
Property | Value(s) | Default value |
---|---|---|
Position |
| Bottom |
The preferred and default side of tooltip is the bottom of the trigger.
Default positionTooltips should be as concise and clear as possible. Exceeding the max width will make it wrap to form another line.
Tooltip overflowTooltip is used to display concise information in relation to a target whereas popover is an overlay container used for displaying links, interactive elements, avatars, text formatting (bullets etc), meta data.
Tooltip vs PopoverTooltip should not be used to provide essential information and collective feedback like errors, warnings, etc that require the immediate attention of the users.