# Copied from https://github.com/okld/streamlit-elements # First, import the elements you need from streamlit_elements import elements, mui, html # Create a frame where Elements widgets will be displayed. # # Elements widgets will not render outside of this frame. # Native Streamlit widgets will not render inside this frame. # # elements() takes a key as parameter. # This key can't be reused by another frame or Streamlit widget. with elements("new_element"): # Let's create a Typography element with "Hello world" as children. # The first step is to check Typography's documentation on MUI: # https://mui.com/components/typography/ # # Here is how you would write it in React JSX: # # # Hello world # mui.Typography("Hello world")