0

I need to add shapes in streamlit like square, triangle ,circle is it possible in any way like maybe with the use of html, css or some direct vote,

  • where do you want to add it? if to plot then you should check documentation for plots. If in html then you can use `` to put some shape. And for square or circle you can even use `
    ` with CSS `border-radius`
    – furas Apr 19 '22 at 13:52

1 Answers1

0

Yes, you can use html to draw shapes on streamlit canvas but streamlit has its limitation, use st.markdown(your_html_design_as_string, unsafe_allow_html=True) to draw the shapes.

You can make those shapes dynamic by taking some user input for your design.

Follow this blog for more.

micro5
  • 415
  • 3
  • 6