You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|__ Products (/products)
|_ List (/products)
|_ New (/products/new)
When a user clicks "Products", it should expand the group and navigate to /products by default (showing the list of products). This behavior improves usability by reducing an unnecessary click when the parent item itself is a valid navigation destination.
Would love to hear your thoughts on this! Thanks!
The text was updated successfully, but these errors were encountered:
Hello,
I’d like to request a feature for the
Sidebar
component.Current Behavior:
SidebarItem
can either be a parent (has children) or a leaf (no children).NavLink
with anhref
attribute, making it a clickable link.NavLink
but functions as a toggle (role="button"
) to expand or collapse its child items.Proposed Behavior:
If a
Href
has been provided in the parent:Href
Example Implementation:
Use case:
Consider this sidebar structure:
When a user clicks "Products", it should expand the group and navigate to
/products
by default (showing the list of products). This behavior improves usability by reducing an unnecessary click when the parent item itself is a valid navigation destination.Would love to hear your thoughts on this! Thanks!
The text was updated successfully, but these errors were encountered: