-
-
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
[DashboardLayout] Add sidebarFooter
slot
#4236
[DashboardLayout] Add sidebarFooter
slot
#4236
Conversation
@@ -124,7 +139,9 @@ function DashboardLayoutSlots(props) { | |||
theme={demoTheme} | |||
window={demoWindow} | |||
> | |||
<DashboardLayout slots={{ toolbarActions: Search }}> | |||
<DashboardLayout | |||
slots={{ toolbarActions: Search, sidebarFooter: SidebarFooter }} |
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.
I wonder about naming. Should we call this something like "NavigationFooter"? 🤔 I feel like it would make sense to give our surfaces a semantic name, rather one that is based on where it's positioned. Not sure though
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.
So far I've used the word "sidebar" for this kind of interfaces and it made the most sense to me in the places it was used, where it seemed like they were specific features of the sidebar itself and not just navigation.
The hideNavigation
prop in DashboardLayout
is an exception but it also hides the menu icon, so it's a bit more general.
For this particular slot I think we really mean the footer of the sidebar and no other type of navigation so I feel like it makes sense to name it this way? And it might be easier for users to understand what it really means visually.
It's also just my opinion of course, but the logic I've been following for this kind of naming is intentional.
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.
Some musings about naming, but overall looks fine.
Merging but if we agree to change any naming we can still do it! |
Closes #4101
Partial item in #4147
mini
slot prop so that users can render footer content differently in mini-drawerAccount
variant we can add document it separately and it will also serve as an example for using this slot): https://deploy-preview-4236--mui-toolpad-docs.netlify.app/toolpad/core/react-dashboard-layout/#customizationTODO
comments inDashboardLayout
(unrelated)