Material Next
On this page

Overview

<mnw-navigation-group> groups destinations under a category button. Enter, Space or a click opens it. Destinations stay mounted while collapsed, so their state survives. A newly active destination opens its group. The app shell reveals an active group before focusing its destination when the drawer opens.

Contact About Me

Contact destination

About destination

Open Profile to reveal its destinations.
<mnw-navigation-group slot="navigation" label="Profile" icon="person">
  <mnw-navigation-item href="#contact">Contact</mnw-navigation-item>
  <mnw-navigation-item href="#about-me">About Me</mnw-navigation-item>
</mnw-navigation-group>

The open boolean attribute controls expansion. Collapse removes children from keyboard navigation and the accessibility tree. Motion follows the reduced-motion preference. Groups can be nested.

API

An expandable category in an app shell drawer. Destinations stay mounted while collapsed. A newly active destination opens its category.

<mnw-navigation-group> properties
PropertyAttributeTypeDefaultDescription
labellabelstring''Category name.
iconiconstring''Material Symbols name.
openopenbooleanfalseWhether destinations are expanded.
<mnw-navigation-group> events
EventDescription
navigation-group-toggle{open} after the visitor toggles the category.
<mnw-navigation-group> slots
SlotDescription
DefaultNavigation items, or nested navigation groups.
iconA custom category icon, overriding icon.
<mnw-navigation-group> CSS parts
PartDescription
toggleThe category button.
mail