🚧 This documentation is a Work In Progress!
Skip to content

Tooltips

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

Usage

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

Props

PropTypeDefaultDescription
msgstrnull(Required) The text content to show inside the tooltip.
positionstr"top"Position of the tooltip relative to the child (top, bottom, left, right).
underlinebooltrueIf true, adds a subtle dotted underline to the child element to indicate interactivity.
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.