Examples
With actions
A plain action button per item in __item-action — the star uses PF’s favorite button
styling.
With drilldown
Two-level drilldown — pf-m-drilled-in slides between the root list and nested menus.
Scrollable drilldown
The drilldown list scrolls — pf-m-scrollable plus the content MaxHeight token.
Drilldown with breadcrumbs
The __breadcrumb region tracks the drill path live; breadcrumb links drill back up.
Initially drilled-in menu
Starts inside a submenu (PF React’s startDrilledIn); drilling up returns to the root.
Plain with search and footer
The plain variant with search and footer regions and a divider before the footer.
Plain scrollable with search and footer
Plain and scrollable combined with search and footer regions.
Documentation
Menu props
The menu is a template family: menu is the root (it owns roving-focus keyboard nav) and
the structure composes from menu-content > menu-list /
menu-group > menu-item includes. Interactive variants
(checkbox, radio, item-action, drilldown) hand-write their <li> inside a
menu-list.
| Name | Type | Description |
|---|---|---|
id / attrs
|
String | Root id / raw passthrough. |
plain / scrollable
|
Boolean |
The matching pf-m-* modifier.
|
modifiers
|
String |
Extra pf-m-* classes.
|
menu-content
|
Include |
Wraps the list(s); attrs for a custom max-height var.
|
menu-list
|
Include |
The role=menu ul; ariaLabel, noRole (omit
role=menu when items are not menuitems), attrs.
|
menu-group
|
Include |
Titled section: titleText, attrs.
|
menu-item
|
Include |
Common item: text, href (renders <a>),
external, icon,
description, disabled,
danger, itemId.
|
Usage
Dropdown pattern. Wrap a Menu toggle + Menu in a positioned container; toggle the menu's visibility with Alpine.