Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[docs] How to get the corner grabber in a multiline TextField displayed? #44355

Closed
TheRealCuran opened this issue Nov 9, 2024 · 2 comments
Closed
Labels
component: text field This is the name of the generic UI component, not the React module! component: TextareaAutosize The React component. package: material-ui Specific to @mui/material support: docs-feedback Feedback from documentation page

Comments

@TheRealCuran
Copy link

TheRealCuran commented Nov 9, 2024

Related page

https://mui.com/material-ui/react-text-field/#multiline

Kind of issue

Missing information

Issue description

I want a multiline <TextField> which gets automatically transformed to a <TextareaAutosize> according to documentation (and it does). But it is missing the corner grabber, so a user can resize the field at leisure.

And I can't find any instruction on how to pass that down to the underlying <TextareaAutosize> (or maybe the default styling of <TextField> is blocking it?).

Please clarify the documentation to include instructions on how to get the corner grabber.

Context

I want a <TextField> that displays the corner grabber for resizing, that is part of <TextareaAutosize>.

Ie. I want to get

image

in my multiline <TextField> with minRows and maxRows.

In case it helps expedite the request: we are paying customers on the premium level: 💳 #84512

Search keywords: TextField, TextareaAutosize, resize, grabber

@TheRealCuran TheRealCuran added status: waiting for maintainer These issues haven't been looked at yet by a maintainer support: docs-feedback Feedback from documentation page labels Nov 9, 2024
@siriwatknp
Copy link
Member

The closest to what you want is to add resize: auto to the textarea to leverage CSS:

<TextField
  id="outlined-multiline-flexible"
  label="Multiline"
  multiline
  maxRows={4}
  sx={{
    [`& textarea:not([aria-hidden])`]: { resize: 'auto' }
  }}
/>

I don't think Material UI will provide this feature soon.

@siriwatknp siriwatknp added component: TextareaAutosize The React component. component: text field This is the name of the generic UI component, not the React module! and removed status: waiting for maintainer These issues haven't been looked at yet by a maintainer labels Nov 11, 2024
Copy link

This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.

Note

@TheRealCuran How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey.

@siriwatknp siriwatknp added the package: material-ui Specific to @mui/material label Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: text field This is the name of the generic UI component, not the React module! component: TextareaAutosize The React component. package: material-ui Specific to @mui/material support: docs-feedback Feedback from documentation page
Projects
None yet
Development

No branches or pull requests

2 participants