Trying to implement a “tooltip” on one of my streamlit elements items. See the second item in the code below.
with elements("test"):
with mui.Grid(container=True, spacing=2):
with mui.Grid(className="App", item=True, xs=12, md=3):
mui.Typography(
"Demographic Questions Answered",
variant="body",
sx={"fontFamily": "sans-serif", "fontSize" : "1rem"}
)
mui.Typography(str(n_responses), variant="h4")
with mui.Grid(className="App", item=True, xs=12, md=3):
mui.Tooltip(title="Hello")
mui.Typography(
"Evaluations with Demographic Responses",
variant="body",
sx={"fontFamily": "sans-serif", "fontSize" : "1rem"}
)
mui.Typography(str(n_evaluations), variant="h4")
When the mui.Tooltip is removed, both items show with no error. However, when the mui.Tooltip remains I get the following error:
I’ve tried nesting it within the arguments, rather than context, and that doesn’t work either