# How do i change the input type inside a custom built textarea component?

**URL:** <https://community.weweb.io/t/how-do-i-change-the-input-type-inside-a-custom-built-textarea-component/19936>\
**Category:** How do I?\
**Created:** [September 9, 2025, 10:27am UTC](https://community.weweb.io/t/how-do-i-change-the-input-type-inside-a-custom-built-textarea-component/19936 "2025-09-09T10:27:18Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Agustin\_Carozo](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/agustin_carozo/32/13231_2.png) [@Agustin\_Carozo](https://community.weweb.io/u/Agustin_Carozo)\
**Post date:** [September 9, 2025, 2:15pm UTC](https://community.weweb.io/t/how-do-i-change-the-input-type-inside-a-custom-built-textarea-component/19936/2 "2025-09-09T14:15:57Z")

</div>

Hi there 👋

Indeed you can’t bind the input type dynamically.

the way I see it you have 2 choices:

- You create a class with some common styles and you apply it to any input you will use
- You create one master input component, and inside you show or hide them dynamically/ conditionally depending on your use case

We’ve had some community members discussing this idea in the past:

> [@Bindable input type?](https://community.weweb.io/t/bindable-input-type/6953/3):
>
> I’m assuming you mean one div per possible input type and using conditional rendering based on a property to only render the div of the corresponding type? That’s the solution I came up with as well but it’s definitely not ideal.

> [@Set input type dynamically](https://community.weweb.io/t/set-input-type-dynamically/9921/6):
>
> I just want to set the type if it is number, answer, email, decimal. This is not possible dynamically so far. I believe it is not a good option to put them all inside the component and render conditionally. If there was a dynamic option in the type like there are in other options, it would solve the problem.

Hope this helps!

---

_[View the full topic](https://community.weweb.io/t/how-do-i-change-the-input-type-inside-a-custom-built-textarea-component/19936)._
