-
-
Notifications
You must be signed in to change notification settings - Fork 375
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] Allow custom navigation page items #4809
base: master
Are you sure you want to change the base?
[DashboardLayout] Allow custom navigation page items #4809
Conversation
…e component for it
Netlify deploy preview |
…-items
I'm awaiting this!!! |
…-items
…-items
@@ -0,0 +1,31 @@ | |||
{ | |||
"props": { |
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 would have expect this to just have a item
prop. Does it need all these other props? This is just to render the default item right? I'm not sure we should expose more API on it.
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.
If you look at the expanded demo here I was just trying to make this type of changes as easy as possible as well as reusing the existing component. Some of these are things that some users already asked to be able to override.
Would it help if these props were additional options maybe? And the first parameter was the item?
Closes #4413.
Closes #4607 both for the hidden and disabled cases.
Helps with #4748 as it allows for overriding the
Link
component used by each item.Also helps with #4733 but additional state management would be needed from the user, so maybe there is a better solution for that in the future.
Also makes it possible to easily mark items as
expanded
,selected
ordisabled
, or use external links with a customhref
.Check the new documentation here: