Toggle shapes with buttons

I’d like to toggle different shapes by clicking buttons, using plotly. Do you know how to do it? Thanks in advance.