Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mikful opened this issue Aug 18, 2022 · 1 comment
Open

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

mikful opened this issue Aug 18, 2022 · 1 comment

Comments

@mikful
Copy link

mikful commented Aug 18, 2022

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?

@vcourintracks
Copy link

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 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants