How to hide streamlit.text_input after input

I have st.text_input
But i want to hide it or make it invisible after i input something and enter
How to do it?
Thank you

Hello @arri, welcome to the community!

Check out the documentation for st.empty which should fit your need by destroying the text_input after pressing “Enter”! :

import streamlit as st

text_input_container = st.empty()
t = text_input_container.text_input("Enter something")

if t != "":

Have a nice day!

1 Like

Thank you andfanilo :+1: