#Wrap text inside a button
7 messages · Page 1 of 1 (latest)
You can any apply styles (including responsive) to any Mantine component using Styles API
At the moment my button looks like this. The text still does not seem to wrap. Which styles would i need to apply?
inner: {
whiteSpace: "normal",
wordWrap: "break-word",
},
root: {
whiteSpace: "normal",
wordWrap: "break-word",
}
}} w="100%" variant="outline" onClick={() => onSelect(s)}>{s}</Button>```
I do not know, try to poke things in devtols
I'll give it a shot. Thanks