I want to hidden text_input ID as soon as I start load streamlit app like display: none in CSS. Because, my friend will send me content of this text_input, I don’t want to type, or see content
Here’s one way to do using streamlit-extras
to add some styling to just one input:
import streamlit as st
from streamlit_extras.stylable_container import stylable_container
st.text_input("Name")
with stylable_container(
key="hidden_input",
css_styles="""
{
display: none;
}
""",
):
st.text_input("ID")
st.text_input("Address")