Skip to content

🔑  Keyup text input

Submitted by Zachary Blackwood

Summary

A text input that updates with every key press

Docstring

Visit the PyPI page for more information.

Examples

example

def example():
    st.write("## Notice how the output doesn't update until you hit enter")
    out = st.text_input("Normal text input")
    st.write(out)
    st.write("## Notice how the output updates with every key you press")
    out2 = st_keyup("Keyup input")
    st.write(out2)

example_with_debounce

def example_with_debounce():
    st.write("## Notice how the output doesn't update until 500ms has passed")
    out = st_keyup("Keyup with debounce", debounce=500)
    st.write(out)