In my use case, I want users to be able to type freely into st.text_input(), and when they add a comma (,), it should behave like a multi-select input. I checked the documentation for st.text_input(), but couldn’t find a way to implement this behavior.
As an alternative, I tried using st.multiselect() with accept_new_items=True, and I’m passing options=None so users can enter anything without choosing any option. However, it seems that when options is None, I can’t set a custom placeholder for the input (the placeholder still default even though I change it trhough multiselect’s parameter).
Is there a way to make the placeholder editable or customizable in this case?
title_search = st.multiselect(
label="Title Search",
options = None,
placeholder='Keywords in Title',
label_visibility='collapsed',
accept_new_options=True,
key='title_filter'
)