streamlit-elements icon indicating copy to clipboard operation
streamlit-elements copied to clipboard

Date and Time Pickers are within mui-x not mui lab

Open mikful opened this issue 3 years ago • 1 comments

Hi, thanks for the awesome package! I just wondered if it would work to redirect the paths for the Date and Time pickers as they don't exist in lab now?

https://mui.com/blog/lab-date-pickers-to-mui-x/

as per the following:?

https://github.com/mikful/streamlit-elements/blob/main/streamlit_elements/frontend/components/modules/mui/Lab.tsx

e.g. change in Lab.tsx

DatePicker: dynamic(() => import("@mui/lab/DatePicker"), { loading: ElementsLoading, ssr: false }),

to

DatePicker: dynamic(() => import("@mui/x-date-pickers/DatePicker"), { loading: ElementsLoading, ssr: false }),

If not, is there another way?

mikful avatar Aug 18 '22 20:08 mikful

I agree with Mikful, it would be awesome to be able to use pickers and add every components needed such as adapters like DateAdapterJs, etc... Your work on this combination between Streamlit and MUI is incredible, thanks for that !

vcourintracks avatar Nov 14 '22 12:11 vcourintracks