"Long Text" input with dynamic height (expand the input height based on the content) >> a coded component if anyone wants/needs it

This is a common thing I have been solving with a complex formula to calculate the input height. Today I said “why am I still doing this???” and decided to fork the main component to have the dynamic height option…

image

you can fork it and use it in your project (when using it, you will need to define background color, border color, etc… it does not come filled by default). Keep in mind that I am not a developer, I just kinda now how to code haha

Link to the repo:

1 Like

Super cool Azuliani, thanks for sharing!

@azuliani

Amazing,

Is it easy to make this available in Weweb via GitHub? Is there an instruction?

Thanks in advance!

once you`ve copied the repo, go to Coded Components (it is right by the side of “Projects” in your dashboard), then click “Import Component”… Just select your organization >> repository >> branch (should be very straightforward). Once youve done it, click the component to select the active version (select last one) and you’ll be able to use it in weweb (when adding an element, select the “Coded” that sits bellow the default components)

2 Likes