Below is the code that will help to have a text area in a material ui project. The regular TextField apparently cannot be used for showing multi line things
rowsMax={4}
fullWidth={true}
className={classes.textField}
aria-label="maximum height"
placeholder="Maximum 4 rows"
defaultValue="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt
ut labore et dolore magna aliqua."
/>
This is not really required btw way. The TextField is having
References:
https://material-ui.com/components/textarea-autosize/
fullWidth={true}
className={classes.textField}
aria-label="maximum height"
placeholder="Maximum 4 rows"
defaultValue="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt
ut labore et dolore magna aliqua."
/>
This is not really required btw way. The TextField is having
References:
https://material-ui.com/components/textarea-autosize/
No comments:
Post a Comment