material ui tooltip make position closer code example
Example: Conditionally activate Material UI tooltip?
<Tooltip title={warningText == null ? "" : warningText}>
<Button>Do action</Button>
</Tooltip>
<Tooltip title={warningText == null ? "" : warningText}>
<Button>Do action</Button>
</Tooltip>