Hello,
I want to make to buttons, each of them will display something if it is pressed, one of them is the default. Is it possible?
I am currently trying something like this:
import streamlit as st
import streamlit.components.v1 as components
l = st.button(“Choice A”, “something”)
k = st.button(“Choice B”)
if l:
st.write("A")
elif k:
st.write("B")
But it only shows when the button is already pressed, is there a better way of doing it?