-
-
Notifications
You must be signed in to change notification settings - Fork 317
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
[core] Allow changing the width of the drawer in dashboard layout #4296
[core] Allow changing the width of the drawer in dashboard layout #4296
Conversation
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.
Looks great, thank you!
Can you also please autogenerate the documentation for the new prop?
You should be able to do it by running 2 scripts from the root package after addressing the comments below.
pnpm proptypes
pnpm docs:build:api
And then just add and commit the autogenerated changes!
@@ -89,6 +89,10 @@ export interface DashboardLayoutProps { | |||
* @default false | |||
*/ | |||
hideNavigation?: boolean; | |||
/** | |||
* The width in pixel of the sidebar when expanded, default value is 320. |
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.
* The width in pixel of the sidebar when expanded, default value is 320. | |
* Width of the sidebar when expanded, in pixels. | |
* @default 320 |
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.
Thanks a lot @garryxiao !!
Closes #4266
https://deploy-preview-4296--mui-toolpad-docs.netlify.app/toolpad/core/api/dashboard-layout