⚠️ Portosaur & This docs is Work In Progress!
Skip to content

Tooltips / Hints

Add interactive hints to any text or element using the <Hint /> component.

Usage

jsx
You can hover over this <Hint msg="Surprise!">text</Hint> to see a tooltip.

Props

PropTypeDefaultDescription
msgstrnull(Required) The text content to show inside the tooltip.
bottomboolfalsePosition the tooltip below the child.
leftboolfalsePosition the tooltip to the left of the child.
rightboolfalsePosition the tooltip to the right of the child. (If none of bottom, left, or right are set, defaults to top).
noUlboolfalseIf true, disables the subtle dotted underline on the child element.
colorstrnullCustom text color for the tooltip.
bgstrnullCustom background color for the tooltip.
gapint5Distance in pixels between the element and the tooltip.
shadowstrnullCustom CSS shadow for the tooltip.