okld / streamlit-elements

Create a draggable and resizable dashboard in Streamlit, featuring Material UI widgets, Monaco editor (Visual Studio Code), Nivo charts, and more!
MIT License
679 stars 77 forks source link

mui.Tabs #5

Open Filhomn opened 2 years ago

Filhomn commented 2 years ago

Is it possible to create mui.Tabs? I noticed that the option is available, but TabPanel is missing… Is there a way to create tabs with mui in streamlit? Thank you very much for this great package!

Kind Regards,

okld commented 2 years ago

Hello @Filhomn, yes it is possible to use mui.Tabs(). TabPanel is just a javascript function defined in mui's examples, it's not part of mui components. You can implement the same logic in Python.

I'll try to provide a minimal sample code for mui.Tabs next week. Meanwhile you can refer to my Streamlit Gallery demo which uses mui.Tabs for the editor card (source code here).

Filhomn commented 2 years ago

Hello @Filhomn, yes it is possible to use mui.Tabs(). TabPanel is just a javascript function defined in mui's examples, it's not part of mui components. You can implement the same logic in Python.

I'll try to provide a minimal sample code for mui.Tabs next week. Meanwhile you can refer to my Streamlit Gallery demo which uses mui.Tabs for the editor card (source code here).

Great!! Thank you very much for this package!!