Skip to content

How to set initial height on Textarea? #5812

Answered by tombohub
ClaudiuHBann asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@ClaudiuHBann
Comment options

@GOATsann
Comment options

Comment options

You must be logged in to vote
2 replies
@ClaudiuHBann
Comment options

@BeemWex
Comment options

Answer selected by ClaudiuHBann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants