How to set initial height on Textarea? #5812
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
|
Beta Was this translation helpful? Give feedback.
-
This the textarea style API: https://mantine.dev/core/textarea/#styles-api I did not try it but I presume you have to apply classes in all the elements until you achieve desired look. I think you'll need to make the root display:flex, and then inside make the textarea flex-grow:1 and then you can apply height to the Textarea component and textarea html element should stretch. |
Beta Was this translation helpful? Give feedback.
This the textarea style API: https://mantine.dev/core/textarea/#styles-api
I did not try it but I presume you have to apply classes in all the elements until you achieve desired look. I think you'll need to make the root display:flex, and then inside make the textarea flex-grow:1 and then you can apply height to the Textarea component and textarea html element should stretch.