MiHCM
overlay/@mihcm/ui·v0.21.0·stable

Tooltip

Hover/focus tooltip (web) or long-press tooltip (native). Configurable side and delay.

Different sides

Position the tooltip relative to the trigger. top is the default.

<Tooltip content="Top" side="top"><Button>Top</Button></Tooltip>
<Tooltip content="Bottom" side="bottom"><Button>Bottom</Button></Tooltip>
<Tooltip content="Left" side="left"><Button>Left</Button></Tooltip>
<Tooltip content="Right" side="right"><Button>Right</Button></Tooltip>

Custom delay

Set delayMs={0} for toolbar-style instant tooltips. The default 700 ms delay prevents flicker during casual mouse movement.

<Tooltip content="Instant" delayMs={0}>
  <Button>No delay</Button>
</Tooltip>