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

Add textArea input type #101

Open
bravomartin opened this issue Sep 29, 2021 · 7 comments
Open

Add textArea input type #101

bravomartin opened this issue Sep 29, 2021 · 7 comments
Labels
enhancement New feature or request

Comments

@bravomartin
Copy link
Member

This would be nice to be able to input and edit longer text more easily.

@bravomartin bravomartin added the enhancement New feature or request label Sep 29, 2021
@kunaumadein
Copy link

i am currently working with longer text options for some kind of generator and i am pretty curious if it is possible to implement some kind of automated line break if it hits some kind of maxWidth value or something @bravomartin

@bravomartin
Copy link
Member Author

Hi @kunaumadein I understand there are two part to your question.

  1. we don't have a textarea input yet but we plan to add it soon.
  2. If I understand correctly, you're using svg and you're having issues with line wrapping? This is a limitation of SVG, really. We recently implemented the ability to use HTML instead of SVG. It could help you with the line wrap.

@kunaumadein
Copy link

kunaumadein commented May 16, 2022

Hello @bravomartin
The ability to use HTML do you refer to the HTML canvas engine or a different kind of method or just plain HTML in combination with SVG?

@bravomartin
Copy link
Member Author

bravomartin commented May 16, 2022

I mean using html dom elements instead of SVG. so instead of returning <svg>{stuff}</svg> you could return <div>{stuff}</div> and it would work. this gives you the ability to use regular html/css styling, including max-width, text-wrap, etc.

@kunaumadein
Copy link

Ok I am gonna check it out thanks!

@nickdima
Copy link

nickdima commented Dec 6, 2023

Is a textarea input still planeed? I could send a PR implementing this if you agree. Thanks!

@fdoflorenzano
Copy link
Contributor

Hi @nickdima! That would be great!

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

No branches or pull requests

4 participants