I am currently working with the ToolTip component and I have a query regarding displaying two lines for the title text - one line for each language rather than having them displayed on a single line. Is it possible to achieve this and how can I style the component accordingly?
Below is the code snippet:
renderToolTip = tipText => {
const { classes } = this.props;
if (tipText) {
return (
<Tooltip
title={tipText}
placement="left"
classes={{
tooltip: classes.tooltip,
}}>
<IconButton>
<InfoOutlined />
</IconButton>
</Tooltip>
);
}
return null;
};
languageList = ['English', 'Spanish']
languageList.map(language => this.renderToolTip(language));
Desired Output: Ability to display each text on a separate line. Any assistance would be greatly appreciated!