Nested Menus Demo
Nested Menu Items
This demo showcases the nested menu feature using SidebarMenuSub, SidebarMenuSubItem, and SidebarMenuSubButton.
Nested Menu Components
- SidebarMenuSub: Container for sub-menu items with connecting border
- SidebarMenuSubItem: Individual sub-menu item wrapper
- SidebarMenuSubButton: Clickable sub-menu item with smaller styling
Dialog
This button is outside the Dialog component but opens the same dialog:
Nested Dialog Demo
Usage
<SidebarMenuItem>
<SidebarMenuButton>
<Icon />
<span>Parent Item</span>
<ChevronRight class="ml-auto" />
</SidebarMenuButton>
<SidebarMenuSub>
<SidebarMenuSubItem>
<SidebarMenuSubButton href="#">
Sub Item 1
</SidebarMenuSubButton>
</SidebarMenuSubItem>
<SidebarMenuSubItem>
<SidebarMenuSubButton href="#">
Sub Item 2
</SidebarMenuSubButton>
</SidebarMenuSubItem>
</SidebarMenuSub>
</SidebarMenuItem>