Interactions
Nav dropdown
Elements
The component is always a child of the nav
component. It is composed of multiple elements:
nav__item nav__item--dropdown
the wrappernav__trigger
the trigger elementnav__target
the target element, usually composed of a list ofnav__item
elements
Properties
Add classes to the wrapper class to change the style of the component.
Show
Open a specific dropdown by default
class="nav__item--dropdown js-show"
Dense
If the dropdown is included in a nav
component with the nav--dense
modifier, it will automatically style it accordingly.
Navbar
Automated specific style when the dropdown is used in the navbar
component. You do not need to add any specific class