Add dir="auto" attribute to `chat_input`

I would like to add the dir=“auto” html attribute to the chat_input widget to support both left-to-right and right-to-left inputs. It needs to be added to the textarea element with data-testid=“stChatInput”.
How can I do that?

Hi @siarez

Currently, there’s no supported method to add the attribute aside from a hacky approach (please see the solution code snippet by scanzy Give each element a unique HTML `id` or `class` · Issue #3888 · streamlit/streamlit · GitHub).

You can also vote to support the feature request of assigning HTML id or class here Give each element a unique HTML `id` or `class` · Issue #3888 · streamlit/streamlit · GitHub