Examples
Split toggle
A plain pf-m-split-button — an action button plus a caret-only toggle button;
default/primary/secondary.
Split toggle with checkbox
pf-m-split-button — a standalone check plus a caret-only toggle button;
default/primary/secondary/disabled.
Split toggle with checkbox, icon, and toggle text
The toggle button is pf-m-text and carries an icon, label text, and the caret, so
clicking any of them triggers the toggle.
Documentation
Menu toggle props
Parameters accepted by
{#include components/navigation/menu-toggle ... /}. Model mode: pass
toggle=<MenuToggle> built in Java instead — the Java tab on each example shows
the builder.
| Name | Type | Description |
|---|---|---|
* id
|
String | DOM id on the button. |
| (content slot) | Slot | Visible label, passed as the include body. Empty body is fine for plain icon-only toggles. |
plain / primary /
expanded / disabled
|
boolean | Modifier flags — plain drops the caret, primary applies the primary button style, expanded toggles the open visual + aria, disabled mutes. |
ariaLabel
|
String | Accessible name — required when the body slot is empty (plain icon-only variant). |
Usage
Pair with Menu. Toggle the menu's visibility via Alpine and pass the trigger button's expanded
state to aria-expanded.