\n is not supported when using in material UI tool tip 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>