nicedouble / StreamlitAntdComponents

A Streamlit component to display Antd-Design
https://nicedouble-streamlitantdcomponentsdemo-app-middmy.streamlit.app/
MIT License
437 stars 29 forks source link

Menu hover #38

Open rudokir opened 10 months ago

rudokir commented 10 months ago

Is there a way to implement a menu with streamlit-antd-components like streamlit-on-hover-tabs? I tried playing with the style, and I got some result that don’t satisfy me. I am using

with st.sidebar: sac.menu(_menuitems_)

And my style is like for on-hover-tabs but i also added a style on div with data-testid=‘stSidebarUserComponents

Also is there a way to space out the menu items vertically?

iuiu34 commented 10 months ago

what is really that doesn't satisfy you? do you have a screenshot maybe? also with st.sidebar.container(): sac.menu() may be a better call

For the space out, gap would be the proper arg. But seems is not declared in widgets/menu.py