-
-
Notifications
You must be signed in to change notification settings - Fork 32.6k
[docs][POC] Allow full screen demos #45785
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
base: master
Are you sure you want to change the base?
Conversation
Netlify deploy previewhttps://deploy-preview-45785--material-ui.netlify.app/ Bundle size report |
const scopedDemo = router.query.scopedDemo; | ||
if (scopedDemo) { | ||
return ( | ||
<AppFrame disableDrawer> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, that was quick! 😅
Do we need the AppFrame for full-screen demos, though?
How about having a dedicated empty page, e.g. https://mui.com/playground?demo=material/components/buttons/BasicButtons.js
And a button in the toolbar that opens the playground url in a new tab?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would be harder to achieve but not impossible. in this PR we can basically surf on the existing generated infra for markdown demos.
96d0102
to
b35637c
Compare
Experimenting with adding a mode to the docs demo pages to display a specific demo in full screen. This is just a POC.
example: https://deploy-preview-45785--material-ui.netlify.app/material-ui/react-button/?scopedDemo=BasicButtons.js
cc @cherniavskii