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

Textarea does not have an option to pass rows #60

Closed
samarth-rao opened this issue Jul 14, 2021 · 2 comments
Closed

Textarea does not have an option to pass rows #60

samarth-rao opened this issue Jul 14, 2021 · 2 comments

Comments

@samarth-rao
Copy link

Your issue may already be reported!
Please search on the issue tracker before creating one.

Expected Behavior

When passing rows to <Textarea rows={2} /> it should work.

Current Behavior

rows="7" is hardcoded in Textarea.js

Possible Solution

rows=rest.rows || "7" in Textarea.js

Context

In my project, I don't need this big Textarea. 2 or 3 rows are sufficient.

@ExordiumX
Copy link

ExordiumX commented Jul 29, 2021

I also need to change the amount of rows. Is this library really this incomplete?
Obviously, in the meantime, we can change the amount of rows directly in Textarea.js.

Also, we also can't set the text inside the textarea using a prop such as "text" or children.

@sajadevo
Copy link
Collaborator

Hi guys,

I've updated @material-tailwind/react and fix that issue, please check the docs for Textarea

All the best,
Sajad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants