I've created a web application project with multiple choice questions. Every answer is loaded in a single button:
<Button
fullWidth={true}
variant="contained"
onClick={(answer) => this.handleAnswer(this.state.answers[0].text)}
>
{this.state.answers[0].text}
</Button>
On clicked, the answer would be solved and the user sees if he's right. Everything works fine, but some answers are too long for the button width. What happens is, that the Button breaks down to a news line and have now a height of 2 lines.
I want to auto resize the text inside a Button to prevent breaking down and handling unexpected long answer content secure.