Default

<Tooltip label="Tooltip content">
  <Button>Hover me</Button>
</Tooltip>

Position

<Tooltip label="Top tooltip" position="top">
  <Button>top</Button>
</Tooltip>

<Tooltip label="Bottom tooltip" position="bottom">
  <Button>bottom</Button>
</Tooltip>

<Tooltip label="Left tooltip" position="left">
  <Button>left</Button>
</Tooltip>

<Tooltip label="Right tooltip" position="right">
  <Button>right</Button>
</Tooltip>

Fine-grained positions

<Tooltip label="Tooltip" position="top-start">...</Tooltip>
<Tooltip label="Tooltip" position="top-end">...</Tooltip>
<Tooltip label="Tooltip" position="bottom-start">...</Tooltip>
<Tooltip label="Tooltip" position="bottom-end">...</Tooltip>

On any element

Badge
Hover this text
<Tooltip label="This is a badge" position="top">
  <Badge>Badge</Badge>
</Tooltip>

<Tooltip label="Explanation" position="top">
  <Text span style={{ textDecoration: 'underline dotted', cursor: 'help' }}>
    Hover this text
  </Text>
</Tooltip>

Disabled

<Tooltip label="This tooltip is disabled" disabled>
  <Button>No tooltip on hover</Button>
</Tooltip>

Props

PropTypeDefaultDescription
labelchildrenContent rendered inside the tooltip popup
position'top'|'bottom'|'left'|'right'|'top-start'|'top-end'|'bottom-start'|'bottom-end''top'Side where the tooltip appears
disabledbooleanPrevents the tooltip from showing