Debian Codegraph @

node/@patternfly/patternfly/docs/components/MenuToggle/examples/MenuToggle.md

raw
1 ---
2 id: 'Menu toggle'
3 section: components
4 subsection: menus
5 cssPrefix: pf-v6-c-menu-toggle
6 ---import './MenuToggle.css'
7
8 ## Examples
9
10 ### Collapsed
11
12 ```html
13 <button class="pf-v6-c-menu-toggle" type="button" aria-expanded="false">
14 <span class="pf-v6-c-menu-toggle__text">Collapsed</span>
15 <span class="pf-v6-c-menu-toggle__controls">
16 <span class="pf-v6-c-menu-toggle__toggle-icon">
17 <svg
18 class="pf-v6-svg"
19 fill="currentColor"
20 viewBox="0 0 20 20"
21 aria-hidden="true"
22 role="img"
23 width="1em"
24 height="1em"
25 >
26 <path
27 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
28 />
29 </svg>
30 </span>
31 </span>
32 </button>
33
34 ```
35
36 ### Expanded
37
38 ```html
39 <button
40 class="pf-v6-c-menu-toggle pf-m-expanded"
41 type="button"
42 aria-expanded="true"
43 >
44 <span class="pf-v6-c-menu-toggle__text">Expanded</span>
45 <span class="pf-v6-c-menu-toggle__controls">
46 <span class="pf-v6-c-menu-toggle__toggle-icon">
47 <svg
48 class="pf-v6-svg"
49 fill="currentColor"
50 viewBox="0 0 20 20"
51 aria-hidden="true"
52 role="img"
53 width="1em"
54 height="1em"
55 >
56 <path
57 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
58 />
59 </svg>
60 </span>
61 </span>
62 </button>
63
64 ```
65
66 ### Disabled
67
68 ```html
69 <button
70 class="pf-v6-c-menu-toggle pf-m-disabled"
71 type="button"
72 aria-expanded="false"
73 disabled
74 >
75 <span class="pf-v6-c-menu-toggle__text">Disabled</span>
76 <span class="pf-v6-c-menu-toggle__controls">
77 <span class="pf-v6-c-menu-toggle__toggle-icon">
78 <svg
79 class="pf-v6-svg"
80 fill="currentColor"
81 viewBox="0 0 20 20"
82 aria-hidden="true"
83 role="img"
84 width="1em"
85 height="1em"
86 >
87 <path
88 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
89 />
90 </svg>
91 </span>
92 </span>
93 </button>
94
95 ```
96
97 ### Count
98
99 ```html
100 <button class="pf-v6-c-menu-toggle" type="button" aria-expanded="false">
101 <span class="pf-v6-c-menu-toggle__text">Count</span>
102 <span class="pf-v6-c-menu-toggle__count">
103 <span class="pf-v6-c-badge pf-m-unread">4 selected</span>
104 </span>
105 <span class="pf-v6-c-menu-toggle__controls">
106 <span class="pf-v6-c-menu-toggle__toggle-icon">
107 <svg
108 class="pf-v6-svg"
109 fill="currentColor"
110 viewBox="0 0 20 20"
111 aria-hidden="true"
112 role="img"
113 width="1em"
114 height="1em"
115 >
116 <path
117 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
118 />
119 </svg>
120 </span>
121 </span>
122 </button>
123
124 &nbsp;
125 <button
126 class="pf-v6-c-menu-toggle pf-m-text pf-m-small pf-m-plain"
127 type="button"
128 aria-expanded="false"
129 >
130 <span class="pf-v6-c-menu-toggle__count">
131 <span class="pf-v6-c-badge pf-m-unread">
132 4
133 <span class="pf-v6-screen-reader">additional items</span>
134 </span>
135 </span>
136 <span class="pf-v6-c-menu-toggle__controls">
137 <span class="pf-v6-c-menu-toggle__toggle-icon">
138 <svg
139 class="pf-v6-svg"
140 fill="currentColor"
141 viewBox="0 0 20 20"
142 aria-hidden="true"
143 role="img"
144 width="1em"
145 height="1em"
146 >
147 <path
148 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
149 />
150 </svg>
151 </span>
152 </span>
153 </button>
154
155 ```
156
157 ### Primary
158
159 ```html
160 <button
161 class="pf-v6-c-menu-toggle pf-m-primary"
162 type="button"
163 aria-expanded="false"
164 >
165 <span class="pf-v6-c-menu-toggle__text">Collapsed</span>
166 <span class="pf-v6-c-menu-toggle__controls">
167 <span class="pf-v6-c-menu-toggle__toggle-icon">
168 <svg
169 class="pf-v6-svg"
170 fill="currentColor"
171 viewBox="0 0 20 20"
172 aria-hidden="true"
173 role="img"
174 width="1em"
175 height="1em"
176 >
177 <path
178 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
179 />
180 </svg>
181 </span>
182 </span>
183 </button>
184
185 &nbsp;
186 <button
187 class="pf-v6-c-menu-toggle pf-m-primary"
188 type="button"
189 aria-expanded="false"
190 >
191 <span class="pf-v6-c-menu-toggle__icon">
192 <svg
193 class="pf-v6-svg"
194 fill="currentColor"
195 viewBox="0 0 32 32"
196 aria-hidden="true"
197 role="img"
198 width="1em"
199 height="1em"
200 >
201 <path
202 d="M26.463 16.845a9.635 9.635 0 0 0-.002-1.688l3.41-1.974a.5.5 0 0 0 .235-.548 14.47 14.47 0 0 0-4.142-7.167.5.5 0 0 0-.594-.07l-3.404 1.97c-.469-.326-.96-.61-1.466-.85V2.58a.5.5 0 0 0-.356-.48 14.662 14.662 0 0 0-8.288 0 .5.5 0 0 0-.356.48v3.944c-.513.245-1.003.528-1.462.846L6.63 5.397a.5.5 0 0 0-.594.07 14.47 14.47 0 0 0-4.142 7.168.5.5 0 0 0 .236.548l3.407 1.972a9.635 9.635 0 0 0 .002 1.688l-3.41 1.974a.5.5 0 0 0-.235.548 14.47 14.47 0 0 0 4.142 7.167c.16.154.405.18.594.07l3.404-1.97c.469.326.96.61 1.466.85v3.938a.5.5 0 0 0 .356.48c1.333.398 2.728.6 4.144.6s2.81-.202 4.144-.6a.5.5 0 0 0 .356-.48v-3.944a10.449 10.449 0 0 0 1.462-.846l3.408 1.973a.5.5 0 0 0 .594-.07 14.47 14.47 0 0 0 4.142-7.168.5.5 0 0 0-.236-.548l-3.407-1.972ZM16 21c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5Z"
203 />
204 </svg>
205 </span>
206 <span class="pf-v6-c-menu-toggle__text">Icon</span>
207 <span class="pf-v6-c-menu-toggle__controls">
208 <span class="pf-v6-c-menu-toggle__toggle-icon">
209 <svg
210 class="pf-v6-svg"
211 fill="currentColor"
212 viewBox="0 0 20 20"
213 aria-hidden="true"
214 role="img"
215 width="1em"
216 height="1em"
217 >
218 <path
219 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
220 />
221 </svg>
222 </span>
223 </span>
224 </button>
225
226 &nbsp;
227 <button
228 class="pf-v6-c-menu-toggle pf-m-expanded pf-m-primary"
229 type="button"
230 aria-expanded="true"
231 >
232 <span class="pf-v6-c-menu-toggle__text">Expanded</span>
233 <span class="pf-v6-c-menu-toggle__controls">
234 <span class="pf-v6-c-menu-toggle__toggle-icon">
235 <svg
236 class="pf-v6-svg"
237 fill="currentColor"
238 viewBox="0 0 20 20"
239 aria-hidden="true"
240 role="img"
241 width="1em"
242 height="1em"
243 >
244 <path
245 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
246 />
247 </svg>
248 </span>
249 </span>
250 </button>
251
252 &nbsp;
253 <button
254 class="pf-v6-c-menu-toggle pf-m-primary pf-m-disabled"
255 type="button"
256 aria-expanded="false"
257 disabled
258 >
259 <span class="pf-v6-c-menu-toggle__text">Disabled</span>
260 <span class="pf-v6-c-menu-toggle__controls">
261 <span class="pf-v6-c-menu-toggle__toggle-icon">
262 <svg
263 class="pf-v6-svg"
264 fill="currentColor"
265 viewBox="0 0 20 20"
266 aria-hidden="true"
267 role="img"
268 width="1em"
269 height="1em"
270 >
271 <path
272 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
273 />
274 </svg>
275 </span>
276 </span>
277 </button>
278
279 ```
280
281 ### Secondary
282
283 ```html
284 <button
285 class="pf-v6-c-menu-toggle pf-m-secondary"
286 type="button"
287 aria-expanded="false"
288 >
289 <span class="pf-v6-c-menu-toggle__text">Collapsed</span>
290 <span class="pf-v6-c-menu-toggle__controls">
291 <span class="pf-v6-c-menu-toggle__toggle-icon">
292 <svg
293 class="pf-v6-svg"
294 fill="currentColor"
295 viewBox="0 0 20 20"
296 aria-hidden="true"
297 role="img"
298 width="1em"
299 height="1em"
300 >
301 <path
302 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
303 />
304 </svg>
305 </span>
306 </span>
307 </button>
308
309 &nbsp;
310 <button
311 class="pf-v6-c-menu-toggle pf-m-secondary"
312 type="button"
313 aria-expanded="false"
314 >
315 <span class="pf-v6-c-menu-toggle__icon">
316 <svg
317 class="pf-v6-svg"
318 fill="currentColor"
319 viewBox="0 0 32 32"
320 aria-hidden="true"
321 role="img"
322 width="1em"
323 height="1em"
324 >
325 <path
326 d="M26.463 16.845a9.635 9.635 0 0 0-.002-1.688l3.41-1.974a.5.5 0 0 0 .235-.548 14.47 14.47 0 0 0-4.142-7.167.5.5 0 0 0-.594-.07l-3.404 1.97c-.469-.326-.96-.61-1.466-.85V2.58a.5.5 0 0 0-.356-.48 14.662 14.662 0 0 0-8.288 0 .5.5 0 0 0-.356.48v3.944c-.513.245-1.003.528-1.462.846L6.63 5.397a.5.5 0 0 0-.594.07 14.47 14.47 0 0 0-4.142 7.168.5.5 0 0 0 .236.548l3.407 1.972a9.635 9.635 0 0 0 .002 1.688l-3.41 1.974a.5.5 0 0 0-.235.548 14.47 14.47 0 0 0 4.142 7.167c.16.154.405.18.594.07l3.404-1.97c.469.326.96.61 1.466.85v3.938a.5.5 0 0 0 .356.48c1.333.398 2.728.6 4.144.6s2.81-.202 4.144-.6a.5.5 0 0 0 .356-.48v-3.944a10.449 10.449 0 0 0 1.462-.846l3.408 1.973a.5.5 0 0 0 .594-.07 14.47 14.47 0 0 0 4.142-7.168.5.5 0 0 0-.236-.548l-3.407-1.972ZM16 21c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5Z"
327 />
328 </svg>
329 </span>
330 <span class="pf-v6-c-menu-toggle__text">Icon</span>
331 <span class="pf-v6-c-menu-toggle__controls">
332 <span class="pf-v6-c-menu-toggle__toggle-icon">
333 <svg
334 class="pf-v6-svg"
335 fill="currentColor"
336 viewBox="0 0 20 20"
337 aria-hidden="true"
338 role="img"
339 width="1em"
340 height="1em"
341 >
342 <path
343 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
344 />
345 </svg>
346 </span>
347 </span>
348 </button>
349
350 &nbsp;
351 <button
352 class="pf-v6-c-menu-toggle pf-m-expanded pf-m-secondary"
353 type="button"
354 aria-expanded="true"
355 >
356 <span class="pf-v6-c-menu-toggle__text">Expanded</span>
357 <span class="pf-v6-c-menu-toggle__controls">
358 <span class="pf-v6-c-menu-toggle__toggle-icon">
359 <svg
360 class="pf-v6-svg"
361 fill="currentColor"
362 viewBox="0 0 20 20"
363 aria-hidden="true"
364 role="img"
365 width="1em"
366 height="1em"
367 >
368 <path
369 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
370 />
371 </svg>
372 </span>
373 </span>
374 </button>
375
376 &nbsp;
377 <button
378 class="pf-v6-c-menu-toggle pf-m-secondary pf-m-disabled"
379 type="button"
380 aria-expanded="false"
381 disabled
382 >
383 <span class="pf-v6-c-menu-toggle__text">Disabled</span>
384 <span class="pf-v6-c-menu-toggle__controls">
385 <span class="pf-v6-c-menu-toggle__toggle-icon">
386 <svg
387 class="pf-v6-svg"
388 fill="currentColor"
389 viewBox="0 0 20 20"
390 aria-hidden="true"
391 role="img"
392 width="1em"
393 height="1em"
394 >
395 <path
396 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
397 />
398 </svg>
399 </span>
400 </span>
401 </button>
402
403 ```
404
405 ### Plain
406
407 ```html
408 <button
409 class="pf-v6-c-menu-toggle pf-m-plain"
410 type="button"
411 aria-expanded="false"
412 aria-label="Actions"
413 >
414 <span class="pf-v6-c-menu-toggle__icon">
415 <svg
416 class="pf-v6-svg"
417 fill="currentColor"
418 viewBox="0 0 32 32"
419 aria-hidden="true"
420 role="img"
421 width="1em"
422 height="1em"
423 >
424 <path
425 d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z"
426 />
427 </svg>
428 </span>
429 </button>
430 &nbsp;
431 <button
432 class="pf-v6-c-menu-toggle pf-m-expanded pf-m-plain"
433 type="button"
434 aria-expanded="true"
435 aria-label="Actions"
436 >
437 <span class="pf-v6-c-menu-toggle__icon">
438 <svg
439 class="pf-v6-svg"
440 fill="currentColor"
441 viewBox="0 0 32 32"
442 aria-hidden="true"
443 role="img"
444 width="1em"
445 height="1em"
446 >
447 <path
448 d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z"
449 />
450 </svg>
451 </span>
452 </button>
453 &nbsp;
454 <button
455 class="pf-v6-c-menu-toggle pf-m-plain pf-m-disabled"
456 type="button"
457 aria-expanded="false"
458 disabled
459 aria-label="Actions"
460 >
461 <span class="pf-v6-c-menu-toggle__icon">
462 <svg
463 class="pf-v6-svg"
464 fill="currentColor"
465 viewBox="0 0 32 32"
466 aria-hidden="true"
467 role="img"
468 width="1em"
469 height="1em"
470 >
471 <path
472 d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z"
473 />
474 </svg>
475 </span>
476 </button>
477
478 ```
479
480 ### Plain circle
481
482 ```html isBeta
483 <button
484 class="pf-v6-c-menu-toggle pf-m-circle pf-m-plain"
485 type="button"
486 aria-expanded="false"
487 aria-label="Circle styled actions"
488 >
489 <span class="pf-v6-c-menu-toggle__icon">
490 <svg
491 class="pf-v6-svg"
492 fill="currentColor"
493 viewBox="0 0 32 32"
494 aria-hidden="true"
495 role="img"
496 width="1em"
497 height="1em"
498 >
499 <path
500 d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z"
501 />
502 </svg>
503 </span>
504 </button>
505 &nbsp;
506 <button
507 class="pf-v6-c-menu-toggle pf-m-circle pf-m-expanded pf-m-plain"
508 type="button"
509 aria-expanded="true"
510 aria-label="Circle and expanded styled actions"
511 >
512 <span class="pf-v6-c-menu-toggle__icon">
513 <svg
514 class="pf-v6-svg"
515 fill="currentColor"
516 viewBox="0 0 32 32"
517 aria-hidden="true"
518 role="img"
519 width="1em"
520 height="1em"
521 >
522 <path
523 d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z"
524 />
525 </svg>
526 </span>
527 </button>
528 &nbsp;
529 <button
530 class="pf-v6-c-menu-toggle pf-m-circle pf-m-plain pf-m-disabled"
531 type="button"
532 aria-expanded="false"
533 disabled
534 aria-label="Circle and disabled styled actions"
535 >
536 <span class="pf-v6-c-menu-toggle__icon">
537 <svg
538 class="pf-v6-svg"
539 fill="currentColor"
540 viewBox="0 0 32 32"
541 aria-hidden="true"
542 role="img"
543 width="1em"
544 height="1em"
545 >
546 <path
547 d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z"
548 />
549 </svg>
550 </span>
551 </button>
552
553 ```
554
555 ### Plain with text
556
557 ```html
558 <button
559 class="pf-v6-c-menu-toggle pf-m-text pf-m-plain"
560 type="button"
561 aria-expanded="false"
562 >
563 <span class="pf-v6-c-menu-toggle__text">Custom text</span>
564 <span class="pf-v6-c-menu-toggle__controls">
565 <span class="pf-v6-c-menu-toggle__toggle-icon">
566 <svg
567 class="pf-v6-svg"
568 fill="currentColor"
569 viewBox="0 0 20 20"
570 aria-hidden="true"
571 role="img"
572 width="1em"
573 height="1em"
574 >
575 <path
576 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
577 />
578 </svg>
579 </span>
580 </span>
581 </button>
582
583 &nbsp;
584 <button
585 class="pf-v6-c-menu-toggle pf-m-expanded pf-m-text pf-m-plain"
586 type="button"
587 aria-expanded="true"
588 >
589 <span class="pf-v6-c-menu-toggle__text">Custom text</span>
590 <span class="pf-v6-c-menu-toggle__controls">
591 <span class="pf-v6-c-menu-toggle__toggle-icon">
592 <svg
593 class="pf-v6-svg"
594 fill="currentColor"
595 viewBox="0 0 20 20"
596 aria-hidden="true"
597 role="img"
598 width="1em"
599 height="1em"
600 >
601 <path
602 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
603 />
604 </svg>
605 </span>
606 </span>
607 </button>
608
609 &nbsp;
610 <button
611 class="pf-v6-c-menu-toggle pf-m-text pf-m-plain pf-m-disabled"
612 type="button"
613 aria-expanded="false"
614 disabled
615 >
616 <span class="pf-v6-c-menu-toggle__text">Disabled</span>
617 <span class="pf-v6-c-menu-toggle__controls">
618 <span class="pf-v6-c-menu-toggle__toggle-icon">
619 <svg
620 class="pf-v6-svg"
621 fill="currentColor"
622 viewBox="0 0 20 20"
623 aria-hidden="true"
624 role="img"
625 width="1em"
626 height="1em"
627 >
628 <path
629 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
630 />
631 </svg>
632 </span>
633 </span>
634 </button>
635
636 ```
637
638 ### Small
639
640 ```html
641 <button
642 class="pf-v6-c-menu-toggle pf-m-small"
643 type="button"
644 aria-expanded="false"
645 >
646 <span class="pf-v6-c-menu-toggle__text">Collapsed</span>
647 <span class="pf-v6-c-menu-toggle__controls">
648 <span class="pf-v6-c-menu-toggle__toggle-icon">
649 <svg
650 class="pf-v6-svg"
651 fill="currentColor"
652 viewBox="0 0 20 20"
653 aria-hidden="true"
654 role="img"
655 width="1em"
656 height="1em"
657 >
658 <path
659 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
660 />
661 </svg>
662 </span>
663 </span>
664 </button>
665 &nbsp;
666 <button
667 class="pf-v6-c-menu-toggle pf-m-expanded pf-m-small"
668 type="button"
669 aria-expanded="true"
670 >
671 <span class="pf-v6-c-menu-toggle__text">Expanded</span>
672 <span class="pf-v6-c-menu-toggle__controls">
673 <span class="pf-v6-c-menu-toggle__toggle-icon">
674 <svg
675 class="pf-v6-svg"
676 fill="currentColor"
677 viewBox="0 0 20 20"
678 aria-hidden="true"
679 role="img"
680 width="1em"
681 height="1em"
682 >
683 <path
684 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
685 />
686 </svg>
687 </span>
688 </span>
689 </button>
690 &nbsp;
691 <button
692 class="pf-v6-c-menu-toggle pf-m-small pf-m-disabled"
693 type="button"
694 aria-expanded="false"
695 disabled
696 >
697 <span class="pf-v6-c-menu-toggle__text">Disabled</span>
698 <span class="pf-v6-c-menu-toggle__controls">
699 <span class="pf-v6-c-menu-toggle__toggle-icon">
700 <svg
701 class="pf-v6-svg"
702 fill="currentColor"
703 viewBox="0 0 20 20"
704 aria-hidden="true"
705 role="img"
706 width="1em"
707 height="1em"
708 >
709 <path
710 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
711 />
712 </svg>
713 </span>
714 </span>
715 </button>
716 <br />
717 <br />
718 <button
719 class="pf-v6-c-menu-toggle pf-m-small pf-m-primary"
720 type="button"
721 aria-expanded="false"
722 >
723 <span class="pf-v6-c-menu-toggle__text">Collapsed</span>
724 <span class="pf-v6-c-menu-toggle__controls">
725 <span class="pf-v6-c-menu-toggle__toggle-icon">
726 <svg
727 class="pf-v6-svg"
728 fill="currentColor"
729 viewBox="0 0 20 20"
730 aria-hidden="true"
731 role="img"
732 width="1em"
733 height="1em"
734 >
735 <path
736 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
737 />
738 </svg>
739 </span>
740 </span>
741 </button>
742 &nbsp;
743 <button
744 class="pf-v6-c-menu-toggle pf-m-expanded pf-m-small pf-m-primary"
745 type="button"
746 aria-expanded="true"
747 >
748 <span class="pf-v6-c-menu-toggle__text">Expanded</span>
749 <span class="pf-v6-c-menu-toggle__controls">
750 <span class="pf-v6-c-menu-toggle__toggle-icon">
751 <svg
752 class="pf-v6-svg"
753 fill="currentColor"
754 viewBox="0 0 20 20"
755 aria-hidden="true"
756 role="img"
757 width="1em"
758 height="1em"
759 >
760 <path
761 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
762 />
763 </svg>
764 </span>
765 </span>
766 </button>
767 &nbsp;
768 <button
769 class="pf-v6-c-menu-toggle pf-m-small pf-m-primary pf-m-disabled"
770 type="button"
771 aria-expanded="false"
772 disabled
773 >
774 <span class="pf-v6-c-menu-toggle__text">Disabled</span>
775 <span class="pf-v6-c-menu-toggle__controls">
776 <span class="pf-v6-c-menu-toggle__toggle-icon">
777 <svg
778 class="pf-v6-svg"
779 fill="currentColor"
780 viewBox="0 0 20 20"
781 aria-hidden="true"
782 role="img"
783 width="1em"
784 height="1em"
785 >
786 <path
787 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
788 />
789 </svg>
790 </span>
791 </span>
792 </button>
793 <br />
794 <br />
795 <button
796 class="pf-v6-c-menu-toggle pf-m-small pf-m-secondary"
797 type="button"
798 aria-expanded="false"
799 >
800 <span class="pf-v6-c-menu-toggle__text">Collapsed</span>
801 <span class="pf-v6-c-menu-toggle__controls">
802 <span class="pf-v6-c-menu-toggle__toggle-icon">
803 <svg
804 class="pf-v6-svg"
805 fill="currentColor"
806 viewBox="0 0 20 20"
807 aria-hidden="true"
808 role="img"
809 width="1em"
810 height="1em"
811 >
812 <path
813 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
814 />
815 </svg>
816 </span>
817 </span>
818 </button>
819 &nbsp;
820 <button
821 class="pf-v6-c-menu-toggle pf-m-expanded pf-m-small pf-m-secondary"
822 type="button"
823 aria-expanded="true"
824 >
825 <span class="pf-v6-c-menu-toggle__text">Expanded</span>
826 <span class="pf-v6-c-menu-toggle__controls">
827 <span class="pf-v6-c-menu-toggle__toggle-icon">
828 <svg
829 class="pf-v6-svg"
830 fill="currentColor"
831 viewBox="0 0 20 20"
832 aria-hidden="true"
833 role="img"
834 width="1em"
835 height="1em"
836 >
837 <path
838 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
839 />
840 </svg>
841 </span>
842 </span>
843 </button>
844 &nbsp;
845 <button
846 class="pf-v6-c-menu-toggle pf-m-small pf-m-secondary pf-m-disabled"
847 type="button"
848 aria-expanded="false"
849 disabled
850 >
851 <span class="pf-v6-c-menu-toggle__text">Disabled</span>
852 <span class="pf-v6-c-menu-toggle__controls">
853 <span class="pf-v6-c-menu-toggle__toggle-icon">
854 <svg
855 class="pf-v6-svg"
856 fill="currentColor"
857 viewBox="0 0 20 20"
858 aria-hidden="true"
859 role="img"
860 width="1em"
861 height="1em"
862 >
863 <path
864 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
865 />
866 </svg>
867 </span>
868 </span>
869 </button>
870 <br />
871 <br />
872 <button
873 class="pf-v6-c-menu-toggle pf-m-text pf-m-small pf-m-plain"
874 type="button"
875 aria-expanded="false"
876 >
877 <span class="pf-v6-c-menu-toggle__text">Collapsed</span>
878 <span class="pf-v6-c-menu-toggle__controls">
879 <span class="pf-v6-c-menu-toggle__toggle-icon">
880 <svg
881 class="pf-v6-svg"
882 fill="currentColor"
883 viewBox="0 0 20 20"
884 aria-hidden="true"
885 role="img"
886 width="1em"
887 height="1em"
888 >
889 <path
890 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
891 />
892 </svg>
893 </span>
894 </span>
895 </button>
896 &nbsp;
897 <button
898 class="pf-v6-c-menu-toggle pf-m-expanded pf-m-text pf-m-small pf-m-plain"
899 type="button"
900 aria-expanded="true"
901 >
902 <span class="pf-v6-c-menu-toggle__text">Expanded</span>
903 <span class="pf-v6-c-menu-toggle__controls">
904 <span class="pf-v6-c-menu-toggle__toggle-icon">
905 <svg
906 class="pf-v6-svg"
907 fill="currentColor"
908 viewBox="0 0 20 20"
909 aria-hidden="true"
910 role="img"
911 width="1em"
912 height="1em"
913 >
914 <path
915 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
916 />
917 </svg>
918 </span>
919 </span>
920 </button>
921 &nbsp;
922 <button
923 class="pf-v6-c-menu-toggle pf-m-text pf-m-small pf-m-plain pf-m-disabled"
924 type="button"
925 aria-expanded="false"
926 disabled
927 >
928 <span class="pf-v6-c-menu-toggle__text">Disabled</span>
929 <span class="pf-v6-c-menu-toggle__controls">
930 <span class="pf-v6-c-menu-toggle__toggle-icon">
931 <svg
932 class="pf-v6-svg"
933 fill="currentColor"
934 viewBox="0 0 20 20"
935 aria-hidden="true"
936 role="img"
937 width="1em"
938 height="1em"
939 >
940 <path
941 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
942 />
943 </svg>
944 </span>
945 </span>
946 </button>
947 <br />
948 <br />
949 <button
950 class="pf-v6-c-menu-toggle pf-m-small pf-m-plain"
951 type="button"
952 aria-expanded="false"
953 aria-label="Actions"
954 >
955 <span class="pf-v6-c-menu-toggle__icon">
956 <svg
957 class="pf-v6-svg"
958 fill="currentColor"
959 viewBox="0 0 32 32"
960 aria-hidden="true"
961 role="img"
962 width="1em"
963 height="1em"
964 >
965 <path
966 d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z"
967 />
968 </svg>
969 </span>
970 </button>
971 &nbsp;
972 <button
973 class="pf-v6-c-menu-toggle pf-m-expanded pf-m-small pf-m-plain"
974 type="button"
975 aria-expanded="true"
976 aria-label="Actions"
977 >
978 <span class="pf-v6-c-menu-toggle__icon">
979 <svg
980 class="pf-v6-svg"
981 fill="currentColor"
982 viewBox="0 0 32 32"
983 aria-hidden="true"
984 role="img"
985 width="1em"
986 height="1em"
987 >
988 <path
989 d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z"
990 />
991 </svg>
992 </span>
993 </button>
994 &nbsp;
995 <button
996 class="pf-v6-c-menu-toggle pf-m-small pf-m-plain pf-m-disabled"
997 type="button"
998 aria-expanded="false"
999 disabled
1000 aria-label="Actions"
1001 >
1002 <span class="pf-v6-c-menu-toggle__icon">
1003 <svg
1004 class="pf-v6-svg"
1005 fill="currentColor"
1006 viewBox="0 0 32 32"
1007 aria-hidden="true"
1008 role="img"
1009 width="1em"
1010 height="1em"
1011 >
1012 <path
1013 d="M12.25 5c0-2.068 1.683-3.75 3.75-3.75S19.75 2.932 19.75 5 18.067 8.75 16 8.75 12.25 7.068 12.25 5ZM16 12.25c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Zm0 11c-2.067 0-3.75 1.682-3.75 3.75s1.683 3.75 3.75 3.75 3.75-1.682 3.75-3.75-1.683-3.75-3.75-3.75Z"
1014 />
1015 </svg>
1016 </span>
1017 </button>
1018
1019 ```
1020
1021 ### With icon/image and text
1022
1023 ```html
1024 <button
1025 class="pf-v6-c-menu-toggle pf-m-secondary"
1026 type="button"
1027 aria-expanded="false"
1028 >
1029 <span class="pf-v6-c-menu-toggle__icon">
1030 <svg
1031 class="pf-v6-svg"
1032 fill="currentColor"
1033 viewBox="0 0 32 32"
1034 aria-hidden="true"
1035 role="img"
1036 width="1em"
1037 height="1em"
1038 >
1039 <path
1040 d="M26.463 16.845a9.635 9.635 0 0 0-.002-1.688l3.41-1.974a.5.5 0 0 0 .235-.548 14.47 14.47 0 0 0-4.142-7.167.5.5 0 0 0-.594-.07l-3.404 1.97c-.469-.326-.96-.61-1.466-.85V2.58a.5.5 0 0 0-.356-.48 14.662 14.662 0 0 0-8.288 0 .5.5 0 0 0-.356.48v3.944c-.513.245-1.003.528-1.462.846L6.63 5.397a.5.5 0 0 0-.594.07 14.47 14.47 0 0 0-4.142 7.168.5.5 0 0 0 .236.548l3.407 1.972a9.635 9.635 0 0 0 .002 1.688l-3.41 1.974a.5.5 0 0 0-.235.548 14.47 14.47 0 0 0 4.142 7.167c.16.154.405.18.594.07l3.404-1.97c.469.326.96.61 1.466.85v3.938a.5.5 0 0 0 .356.48c1.333.398 2.728.6 4.144.6s2.81-.202 4.144-.6a.5.5 0 0 0 .356-.48v-3.944a10.449 10.449 0 0 0 1.462-.846l3.408 1.973a.5.5 0 0 0 .594-.07 14.47 14.47 0 0 0 4.142-7.168.5.5 0 0 0-.236-.548l-3.407-1.972ZM16 21c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5Z"
1041 />
1042 </svg>
1043 </span>
1044 <span class="pf-v6-c-menu-toggle__text">Icon</span>
1045 <span class="pf-v6-c-menu-toggle__controls">
1046 <span class="pf-v6-c-menu-toggle__toggle-icon">
1047 <svg
1048 class="pf-v6-svg"
1049 fill="currentColor"
1050 viewBox="0 0 20 20"
1051 aria-hidden="true"
1052 role="img"
1053 width="1em"
1054 height="1em"
1055 >
1056 <path
1057 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
1058 />
1059 </svg>
1060 </span>
1061 </span>
1062 </button>
1063
1064 &nbsp;
1065 <button
1066 class="pf-v6-c-menu-toggle pf-m-secondary pf-m-disabled"
1067 type="button"
1068 aria-expanded="false"
1069 disabled
1070 >
1071 <span class="pf-v6-c-menu-toggle__icon">
1072 <svg
1073 class="pf-v6-svg"
1074 fill="currentColor"
1075 viewBox="0 0 32 32"
1076 aria-hidden="true"
1077 role="img"
1078 width="1em"
1079 height="1em"
1080 >
1081 <path
1082 d="M26.463 16.845a9.635 9.635 0 0 0-.002-1.688l3.41-1.974a.5.5 0 0 0 .235-.548 14.47 14.47 0 0 0-4.142-7.167.5.5 0 0 0-.594-.07l-3.404 1.97c-.469-.326-.96-.61-1.466-.85V2.58a.5.5 0 0 0-.356-.48 14.662 14.662 0 0 0-8.288 0 .5.5 0 0 0-.356.48v3.944c-.513.245-1.003.528-1.462.846L6.63 5.397a.5.5 0 0 0-.594.07 14.47 14.47 0 0 0-4.142 7.168.5.5 0 0 0 .236.548l3.407 1.972a9.635 9.635 0 0 0 .002 1.688l-3.41 1.974a.5.5 0 0 0-.235.548 14.47 14.47 0 0 0 4.142 7.167c.16.154.405.18.594.07l3.404-1.97c.469.326.96.61 1.466.85v3.938a.5.5 0 0 0 .356.48c1.333.398 2.728.6 4.144.6s2.81-.202 4.144-.6a.5.5 0 0 0 .356-.48v-3.944a10.449 10.449 0 0 0 1.462-.846l3.408 1.973a.5.5 0 0 0 .594-.07 14.47 14.47 0 0 0 4.142-7.168.5.5 0 0 0-.236-.548l-3.407-1.972ZM16 21c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5Z"
1083 />
1084 </svg>
1085 </span>
1086 <span class="pf-v6-c-menu-toggle__text">Icon</span>
1087 <span class="pf-v6-c-menu-toggle__controls">
1088 <span class="pf-v6-c-menu-toggle__toggle-icon">
1089 <svg
1090 class="pf-v6-svg"
1091 fill="currentColor"
1092 viewBox="0 0 20 20"
1093 aria-hidden="true"
1094 role="img"
1095 width="1em"
1096 height="1em"
1097 >
1098 <path
1099 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
1100 />
1101 </svg>
1102 </span>
1103 </span>
1104 </button>
1105
1106 ```
1107
1108 ### With avatar and text
1109
1110 ```html
1111 <button class="pf-v6-c-menu-toggle" type="button" aria-expanded="false">
1112 <span class="pf-v6-c-menu-toggle__icon">
1113 <div class="pf-v6-c-avatar pf-m-sm" role="img" aria-hidden="true">
1114 <svg
1115 aria-hidden="true"
1116 data-name="Layer 1"
1117 xmlns="http://www.w3.org/2000/svg"
1118 version="1.1"
1119 viewBox="0 0 36 36"
1120 >
1121 <path
1122 fill="currentColor"
1123 d="M17.7,20.1c-3.5,0-6.4-2.9-6.4-6.4s2.9-6.4,6.4-6.4,6.4,2.9,6.4,6.4-2.8,6.4-6.4,6.4Z"
1124 />
1125 <path
1126 fill="currentColor"
1127 d="M30.6,36c-.4-3.9-1.3-9-2.9-11-1.1-1.4-2.3-2.2-3.5-2.6s-1.8-.6-6.3-.6-6.1.7-6.1.7c-1.2.4-2.4,1.2-3.4,2.6-1.7,1.9-2.6,7.1-3,10.9h25.2Z"
1128 />
1129 </svg>
1130 </div>
1131 </span>
1132 <span class="pf-v6-c-menu-toggle__text">Ned Username</span>
1133 <span class="pf-v6-c-menu-toggle__controls">
1134 <span class="pf-v6-c-menu-toggle__toggle-icon">
1135 <svg
1136 class="pf-v6-svg"
1137 fill="currentColor"
1138 viewBox="0 0 20 20"
1139 aria-hidden="true"
1140 role="img"
1141 width="1em"
1142 height="1em"
1143 >
1144 <path
1145 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
1146 />
1147 </svg>
1148 </span>
1149 </span>
1150 </button>
1151
1152 &nbsp;
1153 <button
1154 class="pf-v6-c-menu-toggle pf-m-expanded"
1155 type="button"
1156 aria-expanded="true"
1157 >
1158 <span class="pf-v6-c-menu-toggle__icon">
1159 <div class="pf-v6-c-avatar pf-m-sm" role="img" aria-hidden="true">
1160 <svg
1161 aria-hidden="true"
1162 data-name="Layer 1"
1163 xmlns="http://www.w3.org/2000/svg"
1164 version="1.1"
1165 viewBox="0 0 36 36"
1166 >
1167 <path
1168 fill="currentColor"
1169 d="M17.7,20.1c-3.5,0-6.4-2.9-6.4-6.4s2.9-6.4,6.4-6.4,6.4,2.9,6.4,6.4-2.8,6.4-6.4,6.4Z"
1170 />
1171 <path
1172 fill="currentColor"
1173 d="M30.6,36c-.4-3.9-1.3-9-2.9-11-1.1-1.4-2.3-2.2-3.5-2.6s-1.8-.6-6.3-.6-6.1.7-6.1.7c-1.2.4-2.4,1.2-3.4,2.6-1.7,1.9-2.6,7.1-3,10.9h25.2Z"
1174 />
1175 </svg>
1176 </div>
1177 </span>
1178 <span class="pf-v6-c-menu-toggle__text">Ned Username</span>
1179 <span class="pf-v6-c-menu-toggle__controls">
1180 <span class="pf-v6-c-menu-toggle__toggle-icon">
1181 <svg
1182 class="pf-v6-svg"
1183 fill="currentColor"
1184 viewBox="0 0 20 20"
1185 aria-hidden="true"
1186 role="img"
1187 width="1em"
1188 height="1em"
1189 >
1190 <path
1191 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
1192 />
1193 </svg>
1194 </span>
1195 </span>
1196 </button>
1197
1198 &nbsp;
1199 <button
1200 class="pf-v6-c-menu-toggle pf-m-disabled"
1201 type="button"
1202 aria-expanded="false"
1203 disabled
1204 >
1205 <span class="pf-v6-c-menu-toggle__icon">
1206 <div class="pf-v6-c-avatar pf-m-sm" role="img" aria-hidden="true">
1207 <svg
1208 aria-hidden="true"
1209 data-name="Layer 1"
1210 xmlns="http://www.w3.org/2000/svg"
1211 version="1.1"
1212 viewBox="0 0 36 36"
1213 >
1214 <path
1215 fill="currentColor"
1216 d="M17.7,20.1c-3.5,0-6.4-2.9-6.4-6.4s2.9-6.4,6.4-6.4,6.4,2.9,6.4,6.4-2.8,6.4-6.4,6.4Z"
1217 />
1218 <path
1219 fill="currentColor"
1220 d="M30.6,36c-.4-3.9-1.3-9-2.9-11-1.1-1.4-2.3-2.2-3.5-2.6s-1.8-.6-6.3-.6-6.1.7-6.1.7c-1.2.4-2.4,1.2-3.4,2.6-1.7,1.9-2.6,7.1-3,10.9h25.2Z"
1221 />
1222 </svg>
1223 </div>
1224 </span>
1225 <span class="pf-v6-c-menu-toggle__text">Ned Username</span>
1226 <span class="pf-v6-c-menu-toggle__controls">
1227 <span class="pf-v6-c-menu-toggle__toggle-icon">
1228 <svg
1229 class="pf-v6-svg"
1230 fill="currentColor"
1231 viewBox="0 0 20 20"
1232 aria-hidden="true"
1233 role="img"
1234 width="1em"
1235 height="1em"
1236 >
1237 <path
1238 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
1239 />
1240 </svg>
1241 </span>
1242 </span>
1243 </button>
1244
1245 ```
1246
1247 ### Full height
1248
1249 ```html
1250 <button
1251 class="pf-v6-c-menu-toggle pf-m-full-height"
1252 type="button"
1253 aria-expanded="false"
1254 >
1255 <span class="pf-v6-c-menu-toggle__text">Full height</span>
1256 <span class="pf-v6-c-menu-toggle__controls">
1257 <span class="pf-v6-c-menu-toggle__toggle-icon">
1258 <svg
1259 class="pf-v6-svg"
1260 fill="currentColor"
1261 viewBox="0 0 20 20"
1262 aria-hidden="true"
1263 role="img"
1264 width="1em"
1265 height="1em"
1266 >
1267 <path
1268 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
1269 />
1270 </svg>
1271 </span>
1272 </span>
1273 </button>
1274
1275 ```
1276
1277 ### Full width
1278
1279 ```html
1280 <button
1281 class="pf-v6-c-menu-toggle pf-m-full-width"
1282 type="button"
1283 aria-expanded="false"
1284 >
1285 <span class="pf-v6-c-menu-toggle__text">Full width</span>
1286 <span class="pf-v6-c-menu-toggle__controls">
1287 <span class="pf-v6-c-menu-toggle__toggle-icon">
1288 <svg
1289 class="pf-v6-svg"
1290 fill="currentColor"
1291 viewBox="0 0 20 20"
1292 aria-hidden="true"
1293 role="img"
1294 width="1em"
1295 height="1em"
1296 >
1297 <path
1298 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
1299 />
1300 </svg>
1301 </span>
1302 </span>
1303 </button>
1304
1305 ```
1306
1307 ### Form
1308
1309 ```html
1310 <button
1311 class="pf-v6-c-menu-toggle pf-m-form"
1312 type="button"
1313 aria-expanded="false"
1314 >
1315 <span class="pf-v6-c-menu-toggle__text">Select option</span>
1316 <span class="pf-v6-c-menu-toggle__controls">
1317 <span class="pf-v6-c-menu-toggle__toggle-icon">
1318 <svg
1319 class="pf-v6-svg"
1320 fill="currentColor"
1321 viewBox="0 0 20 20"
1322 aria-hidden="true"
1323 role="img"
1324 width="1em"
1325 height="1em"
1326 >
1327 <path
1328 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
1329 />
1330 </svg>
1331 </span>
1332 </span>
1333 </button>
1334
1335 ```
1336
1337 ### Typeahead
1338
1339 ```html
1340 <div
1341 class="pf-v6-c-menu-toggle pf-m-full-width pf-m-typeahead"
1342 id="typeahead-example"
1343 >
1344 <div class="pf-v6-c-text-input-group pf-m-plain">
1345 <div class="pf-v6-c-text-input-group__main">
1346 <span class="pf-v6-c-text-input-group__text">
1347 <input
1348 class="pf-v6-c-text-input-group__text-input"
1349 type="text"
1350 value
1351 aria-label="Type to filter"
1352 />
1353 </span>
1354 </div>
1355 <div class="pf-v6-c-text-input-group__utilities">
1356 <button
1357 class="pf-v6-c-button pf-m-plain"
1358 type="button"
1359 aria-label="Clear input"
1360 >
1361 <span class="pf-v6-c-button__icon">
1362 <svg
1363 class="pf-v6-svg"
1364 fill="currentColor"
1365 viewBox="0 0 20 20"
1366 aria-hidden="true"
1367 role="img"
1368 width="1em"
1369 height="1em"
1370 >
1371 <path
1372 d="M17.8 16.2 11.59 10l6.21-6.21c.42-.46.39-1.17-.07-1.59-.43-.4-1.09-.4-1.52 0l-6.2 6.2-6.22-6.19c-.44-.44-1.15-.44-1.59 0-.44.44-.44 1.15 0 1.59l6.2 6.21-6.2 6.2c-.42.46-.39 1.17.07 1.59.43.4 1.09.4 1.52 0L10 11.59l6.2 6.2c.44.44 1.15.44 1.59 0 .44-.45.44-1.16 0-1.6Z"
1373 />
1374 </svg>
1375 </span>
1376 </button>
1377 </div>
1378 </div>
1379 <button
1380 class="pf-v6-c-menu-toggle__button"
1381 type="button"
1382 aria-expanded="false"
1383 id="typeahead-example-toggle-button"
1384 aria-label="Menu toggle"
1385 >
1386 <span class="pf-v6-c-menu-toggle__controls">
1387 <span class="pf-v6-c-menu-toggle__toggle-icon">
1388 <svg
1389 class="pf-v6-svg"
1390 fill="currentColor"
1391 viewBox="0 0 20 20"
1392 aria-hidden="true"
1393 role="img"
1394 width="1em"
1395 height="1em"
1396 >
1397 <path
1398 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
1399 />
1400 </svg>
1401 </span>
1402 </span>
1403 </button>
1404 </div>
1405
1406 ```
1407
1408 ### Status
1409
1410 ```html
1411 <button
1412 class="pf-v6-c-menu-toggle pf-m-success"
1413 type="button"
1414 aria-expanded="false"
1415 >
1416 <span class="pf-v6-c-menu-toggle__text">Success</span>
1417 <span class="pf-v6-c-menu-toggle__controls">
1418 <span class="pf-v6-c-menu-toggle__status-icon">
1419 <svg
1420 class="pf-v6-svg"
1421 fill="currentColor"
1422 viewBox="0 0 32 32"
1423 aria-hidden="true"
1424 role="img"
1425 width="1em"
1426 height="1em"
1427 >
1428 <path
1429 d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm7.795 11.795-8.646 8.646c-.317.317-.733.475-1.149.475s-.832-.158-1.149-.475l-4.646-4.646a1.126 1.126 0 0 1 1.591-1.591l4.205 4.205 8.205-8.205a1.126 1.126 0 0 1 1.591 1.591Z"
1430 />
1431 </svg>
1432 </span>
1433 <span class="pf-v6-c-menu-toggle__toggle-icon">
1434 <svg
1435 class="pf-v6-svg"
1436 fill="currentColor"
1437 viewBox="0 0 20 20"
1438 aria-hidden="true"
1439 role="img"
1440 width="1em"
1441 height="1em"
1442 >
1443 <path
1444 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
1445 />
1446 </svg>
1447 </span>
1448 </span>
1449 </button>
1450
1451 <br />
1452 <br />
1453
1454 <button
1455 class="pf-v6-c-menu-toggle pf-m-warning"
1456 type="button"
1457 aria-expanded="false"
1458 >
1459 <span class="pf-v6-c-menu-toggle__text">Warning</span>
1460 <span class="pf-v6-c-menu-toggle__controls">
1461 <span class="pf-v6-c-menu-toggle__status-icon">
1462 <svg
1463 class="pf-v6-svg"
1464 fill="currentColor"
1465 viewBox="0 0 32 32"
1466 aria-hidden="true"
1467 role="img"
1468 width="1em"
1469 height="1em"
1470 >
1471 <path
1472 d="m31.874 28.514-15.011-27a1.001 1.001 0 0 0-1.748 0l-15.011 27A1 1 0 0 0 .978 30H31a1 1 0 0 0 .874-1.486ZM14.5 12a1.5 1.5 0 0 1 3 0v5a1.5 1.5 0 0 1-3 0v-5ZM16 26.001a2 2 0 1 1-.001-3.999A2 2 0 0 1 16 26.001Z"
1473 />
1474 </svg>
1475 </span>
1476 <span class="pf-v6-c-menu-toggle__toggle-icon">
1477 <svg
1478 class="pf-v6-svg"
1479 fill="currentColor"
1480 viewBox="0 0 20 20"
1481 aria-hidden="true"
1482 role="img"
1483 width="1em"
1484 height="1em"
1485 >
1486 <path
1487 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
1488 />
1489 </svg>
1490 </span>
1491 </span>
1492 </button>
1493
1494 <br />
1495 <br />
1496
1497 <button
1498 class="pf-v6-c-menu-toggle pf-m-danger"
1499 type="button"
1500 aria-expanded="false"
1501 >
1502 <span class="pf-v6-c-menu-toggle__text">Danger</span>
1503 <span class="pf-v6-c-menu-toggle__controls">
1504 <span class="pf-v6-c-menu-toggle__status-icon">
1505 <svg
1506 class="pf-v6-svg"
1507 fill="currentColor"
1508 viewBox="0 0 32 32"
1509 aria-hidden="true"
1510 role="img"
1511 width="1em"
1512 height="1em"
1513 >
1514 <path
1515 d="M16 1C7.729 1 1 7.729 1 16s6.729 15 15 15 15-6.729 15-15S24.271 1 16 1Zm-1.5 8a1.5 1.5 0 1 1 3 0v7a1.5 1.5 0 1 1-3 0V9ZM16 25.001a2 2 0 1 1-.001-3.999A2 2 0 0 1 16 25.001Z"
1516 />
1517 </svg>
1518 </span>
1519 <span class="pf-v6-c-menu-toggle__toggle-icon">
1520 <svg
1521 class="pf-v6-svg"
1522 fill="currentColor"
1523 viewBox="0 0 20 20"
1524 aria-hidden="true"
1525 role="img"
1526 width="1em"
1527 height="1em"
1528 >
1529 <path
1530 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
1531 />
1532 </svg>
1533 </span>
1534 </span>
1535 </button>
1536
1537 ```
1538
1539 ### Placeholder
1540
1541 ```html
1542 <button
1543 class="pf-v6-c-menu-toggle pf-m-placeholder"
1544 type="button"
1545 aria-expanded="false"
1546 >
1547 <span class="pf-v6-c-menu-toggle__text">Placeholder text</span>
1548 <span class="pf-v6-c-menu-toggle__controls">
1549 <span class="pf-v6-c-menu-toggle__toggle-icon">
1550 <svg
1551 class="pf-v6-svg"
1552 fill="currentColor"
1553 viewBox="0 0 20 20"
1554 aria-hidden="true"
1555 role="img"
1556 width="1em"
1557 height="1em"
1558 >
1559 <path
1560 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
1561 />
1562 </svg>
1563 </span>
1564 </span>
1565 </button>
1566
1567 ```
1568
1569 ### Split toggle
1570
1571 Shown with default, primary, and secondary styling
1572
1573 ```html
1574 <div
1575 class="pf-v6-c-menu-toggle pf-m-split-button"
1576 id="split-button-checkbox-with-toggle-action-example"
1577 >
1578 <button class="pf-v6-c-menu-toggle__button" type="button">Action</button>
1579 <button
1580 class="pf-v6-c-menu-toggle__button"
1581 type="button"
1582 aria-expanded="false"
1583 id="split-button-checkbox-with-toggle-action-example-toggle-button"
1584 aria-label="Menu toggle"
1585 >
1586 <span class="pf-v6-c-menu-toggle__controls">
1587 <span class="pf-v6-c-menu-toggle__toggle-icon">
1588 <svg
1589 class="pf-v6-svg"
1590 fill="currentColor"
1591 viewBox="0 0 20 20"
1592 aria-hidden="true"
1593 role="img"
1594 width="1em"
1595 height="1em"
1596 >
1597 <path
1598 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
1599 />
1600 </svg>
1601 </span>
1602 </span>
1603 </button>
1604 </div>
1605 &nbsp;
1606 <div
1607 class="pf-v6-c-menu-toggle pf-m-expanded pf-m-split-button"
1608 id="split-button-checkbox-with-toggle-action-expanded-example"
1609 >
1610 <button class="pf-v6-c-menu-toggle__button" type="button">Action</button>
1611 <button
1612 class="pf-v6-c-menu-toggle__button"
1613 type="button"
1614 aria-expanded="true"
1615 id="split-button-checkbox-with-toggle-action-expanded-example-toggle-button"
1616 aria-label="Menu toggle"
1617 >
1618 <span class="pf-v6-c-menu-toggle__controls">
1619 <span class="pf-v6-c-menu-toggle__toggle-icon">
1620 <svg
1621 class="pf-v6-svg"
1622 fill="currentColor"
1623 viewBox="0 0 20 20"
1624 aria-hidden="true"
1625 role="img"
1626 width="1em"
1627 height="1em"
1628 >
1629 <path
1630 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
1631 />
1632 </svg>
1633 </span>
1634 </span>
1635 </button>
1636 </div>
1637 &nbsp;
1638 <div
1639 class="pf-v6-c-menu-toggle pf-m-split-button pf-m-disabled"
1640 id="split-button-checkbox-with-toggle-action-disabled-example"
1641 >
1642 <button class="pf-v6-c-menu-toggle__button" type="button" disabled>Action</button>
1643 <button
1644 class="pf-v6-c-menu-toggle__button"
1645 type="button"
1646 aria-expanded="false"
1647 id="split-button-checkbox-with-toggle-action-disabled-example-toggle-button"
1648 aria-label="Menu toggle"
1649 disabled
1650 >
1651 <span class="pf-v6-c-menu-toggle__controls">
1652 <span class="pf-v6-c-menu-toggle__toggle-icon">
1653 <svg
1654 class="pf-v6-svg"
1655 fill="currentColor"
1656 viewBox="0 0 20 20"
1657 aria-hidden="true"
1658 role="img"
1659 width="1em"
1660 height="1em"
1661 >
1662 <path
1663 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
1664 />
1665 </svg>
1666 </span>
1667 </span>
1668 </button>
1669 </div>
1670
1671 <br />
1672 <br />
1673
1674 <div
1675 class="pf-v6-c-menu-toggle pf-m-primary pf-m-split-button"
1676 id="split-button-checkbox-with-toggle-action-primary-example"
1677 >
1678 <button class="pf-v6-c-menu-toggle__button" type="button">Action</button>
1679 <button
1680 class="pf-v6-c-menu-toggle__button"
1681 type="button"
1682 aria-expanded="false"
1683 id="split-button-checkbox-with-toggle-action-primary-example-toggle-button"
1684 aria-label="Menu toggle"
1685 >
1686 <span class="pf-v6-c-menu-toggle__controls">
1687 <span class="pf-v6-c-menu-toggle__toggle-icon">
1688 <svg
1689 class="pf-v6-svg"
1690 fill="currentColor"
1691 viewBox="0 0 20 20"
1692 aria-hidden="true"
1693 role="img"
1694 width="1em"
1695 height="1em"
1696 >
1697 <path
1698 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
1699 />
1700 </svg>
1701 </span>
1702 </span>
1703 </button>
1704 </div>
1705 &nbsp;
1706 <div
1707 class="pf-v6-c-menu-toggle pf-m-primary pf-m-expanded pf-m-split-button"
1708 id="split-button-checkbox-with-toggle-action-primary-expanded-example"
1709 >
1710 <button class="pf-v6-c-menu-toggle__button" type="button">Action</button>
1711 <button
1712 class="pf-v6-c-menu-toggle__button"
1713 type="button"
1714 aria-expanded="true"
1715 id="split-button-checkbox-with-toggle-action-primary-expanded-example-toggle-button"
1716 aria-label="Menu toggle"
1717 >
1718 <span class="pf-v6-c-menu-toggle__controls">
1719 <span class="pf-v6-c-menu-toggle__toggle-icon">
1720 <svg
1721 class="pf-v6-svg"
1722 fill="currentColor"
1723 viewBox="0 0 20 20"
1724 aria-hidden="true"
1725 role="img"
1726 width="1em"
1727 height="1em"
1728 >
1729 <path
1730 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
1731 />
1732 </svg>
1733 </span>
1734 </span>
1735 </button>
1736 </div>
1737 &nbsp;
1738 <div
1739 class="pf-v6-c-menu-toggle pf-m-primary pf-m-split-button pf-m-disabled"
1740 id="split-button-checkbox-with-toggle-action-primary-disabled-example"
1741 >
1742 <button class="pf-v6-c-menu-toggle__button" type="button" disabled>Action</button>
1743 <button
1744 class="pf-v6-c-menu-toggle__button"
1745 type="button"
1746 aria-expanded="false"
1747 id="split-button-checkbox-with-toggle-action-primary-disabled-example-toggle-button"
1748 aria-label="Menu toggle"
1749 disabled
1750 >
1751 <span class="pf-v6-c-menu-toggle__controls">
1752 <span class="pf-v6-c-menu-toggle__toggle-icon">
1753 <svg
1754 class="pf-v6-svg"
1755 fill="currentColor"
1756 viewBox="0 0 20 20"
1757 aria-hidden="true"
1758 role="img"
1759 width="1em"
1760 height="1em"
1761 >
1762 <path
1763 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
1764 />
1765 </svg>
1766 </span>
1767 </span>
1768 </button>
1769 </div>
1770
1771 <br />
1772 <br />
1773
1774 <div
1775 class="pf-v6-c-menu-toggle pf-m-secondary pf-m-split-button"
1776 id="split-button-checkbox-with-toggle-action-secondary-example"
1777 >
1778 <button class="pf-v6-c-menu-toggle__button" type="button">Action</button>
1779 <button
1780 class="pf-v6-c-menu-toggle__button"
1781 type="button"
1782 aria-expanded="false"
1783 id="split-button-checkbox-with-toggle-action-secondary-example-toggle-button"
1784 aria-label="Menu toggle"
1785 >
1786 <span class="pf-v6-c-menu-toggle__controls">
1787 <span class="pf-v6-c-menu-toggle__toggle-icon">
1788 <svg
1789 class="pf-v6-svg"
1790 fill="currentColor"
1791 viewBox="0 0 20 20"
1792 aria-hidden="true"
1793 role="img"
1794 width="1em"
1795 height="1em"
1796 >
1797 <path
1798 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
1799 />
1800 </svg>
1801 </span>
1802 </span>
1803 </button>
1804 </div>
1805 &nbsp;
1806 <div
1807 class="pf-v6-c-menu-toggle pf-m-secondary pf-m-expanded pf-m-split-button"
1808 id="split-button-checkbox-with-toggle-action-secondary-expanded-example"
1809 >
1810 <button class="pf-v6-c-menu-toggle__button" type="button">Action</button>
1811 <button
1812 class="pf-v6-c-menu-toggle__button"
1813 type="button"
1814 aria-expanded="true"
1815 id="split-button-checkbox-with-toggle-action-secondary-expanded-example-toggle-button"
1816 aria-label="Menu toggle"
1817 >
1818 <span class="pf-v6-c-menu-toggle__controls">
1819 <span class="pf-v6-c-menu-toggle__toggle-icon">
1820 <svg
1821 class="pf-v6-svg"
1822 fill="currentColor"
1823 viewBox="0 0 20 20"
1824 aria-hidden="true"
1825 role="img"
1826 width="1em"
1827 height="1em"
1828 >
1829 <path
1830 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
1831 />
1832 </svg>
1833 </span>
1834 </span>
1835 </button>
1836 </div>
1837 &nbsp;
1838 <div
1839 class="pf-v6-c-menu-toggle pf-m-secondary pf-m-split-button pf-m-disabled"
1840 id="split-button-checkbox-with-toggle-action-secondary-disabled-example"
1841 >
1842 <button class="pf-v6-c-menu-toggle__button" type="button" disabled>Action</button>
1843 <button
1844 class="pf-v6-c-menu-toggle__button"
1845 type="button"
1846 aria-expanded="false"
1847 id="split-button-checkbox-with-toggle-action-secondary-disabled-example-toggle-button"
1848 aria-label="Menu toggle"
1849 disabled
1850 >
1851 <span class="pf-v6-c-menu-toggle__controls">
1852 <span class="pf-v6-c-menu-toggle__toggle-icon">
1853 <svg
1854 class="pf-v6-svg"
1855 fill="currentColor"
1856 viewBox="0 0 20 20"
1857 aria-hidden="true"
1858 role="img"
1859 width="1em"
1860 height="1em"
1861 >
1862 <path
1863 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
1864 />
1865 </svg>
1866 </span>
1867 </span>
1868 </button>
1869 </div>
1870
1871 ```
1872
1873 ### Split toggle with checkbox
1874
1875 Shown with default, primary, and secondary styling
1876
1877 ```html
1878 <div
1879 class="pf-v6-c-menu-toggle pf-m-split-button"
1880 id="split-button-checkbox-example"
1881 >
1882 <label class="pf-v6-c-check pf-m-standalone">
1883 <input
1884 class="pf-v6-c-check__input"
1885 type="checkbox"
1886 id="split-button-checkbox-example-input"
1887 name="split-button-checkbox-example-input"
1888 aria-label="Select all items"
1889 />
1890 </label>
1891 <button
1892 class="pf-v6-c-menu-toggle__button"
1893 type="button"
1894 aria-expanded="false"
1895 id="split-button-checkbox-example-toggle-button"
1896 aria-label="Menu toggle"
1897 >
1898 <span class="pf-v6-c-menu-toggle__controls">
1899 <span class="pf-v6-c-menu-toggle__toggle-icon">
1900 <svg
1901 class="pf-v6-svg"
1902 fill="currentColor"
1903 viewBox="0 0 20 20"
1904 aria-hidden="true"
1905 role="img"
1906 width="1em"
1907 height="1em"
1908 >
1909 <path
1910 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
1911 />
1912 </svg>
1913 </span>
1914 </span>
1915 </button>
1916 </div>
1917 &nbsp;
1918 <div
1919 class="pf-v6-c-menu-toggle pf-m-expanded pf-m-split-button"
1920 id="split-button-checkbox-expanded-example"
1921 >
1922 <label class="pf-v6-c-check pf-m-standalone">
1923 <input
1924 class="pf-v6-c-check__input"
1925 type="checkbox"
1926 id="split-button-checkbox-expanded-example-input"
1927 name="split-button-checkbox-expanded-example-input"
1928 aria-label="Select all items"
1929 />
1930 </label>
1931 <button
1932 class="pf-v6-c-menu-toggle__button"
1933 type="button"
1934 aria-expanded="true"
1935 id="split-button-checkbox-expanded-example-toggle-button"
1936 aria-label="Menu toggle"
1937 >
1938 <span class="pf-v6-c-menu-toggle__controls">
1939 <span class="pf-v6-c-menu-toggle__toggle-icon">
1940 <svg
1941 class="pf-v6-svg"
1942 fill="currentColor"
1943 viewBox="0 0 20 20"
1944 aria-hidden="true"
1945 role="img"
1946 width="1em"
1947 height="1em"
1948 >
1949 <path
1950 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
1951 />
1952 </svg>
1953 </span>
1954 </span>
1955 </button>
1956 </div>
1957 &nbsp;
1958 <div
1959 class="pf-v6-c-menu-toggle pf-m-split-button pf-m-disabled"
1960 id="split-button-checkbox-disabled-example"
1961 >
1962 <label class="pf-v6-c-check pf-m-standalone">
1963 <input
1964 class="pf-v6-c-check__input"
1965 type="checkbox"
1966 disabled
1967 id="split-button-checkbox-disabled-example-input"
1968 name="split-button-checkbox-disabled-example-input"
1969 aria-label="Select all items"
1970 />
1971 </label>
1972 <button
1973 class="pf-v6-c-menu-toggle__button"
1974 type="button"
1975 aria-expanded="false"
1976 id="split-button-checkbox-disabled-example-toggle-button"
1977 aria-label="Menu toggle"
1978 disabled
1979 >
1980 <span class="pf-v6-c-menu-toggle__controls">
1981 <span class="pf-v6-c-menu-toggle__toggle-icon">
1982 <svg
1983 class="pf-v6-svg"
1984 fill="currentColor"
1985 viewBox="0 0 20 20"
1986 aria-hidden="true"
1987 role="img"
1988 width="1em"
1989 height="1em"
1990 >
1991 <path
1992 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
1993 />
1994 </svg>
1995 </span>
1996 </span>
1997 </button>
1998 </div>
1999
2000 <br />
2001 <br />
2002
2003 <div
2004 class="pf-v6-c-menu-toggle pf-m-primary pf-m-split-button"
2005 id="split-button-primary-checkbox-example"
2006 >
2007 <label class="pf-v6-c-check pf-m-standalone">
2008 <input
2009 class="pf-v6-c-check__input"
2010 type="checkbox"
2011 id="split-button-primary-checkbox-example-input"
2012 name="split-button-primary-checkbox-example-input"
2013 aria-label="Select all items"
2014 />
2015 </label>
2016 <button
2017 class="pf-v6-c-menu-toggle__button"
2018 type="button"
2019 aria-expanded="false"
2020 id="split-button-primary-checkbox-example-toggle-button"
2021 aria-label="Menu toggle"
2022 >
2023 <span class="pf-v6-c-menu-toggle__controls">
2024 <span class="pf-v6-c-menu-toggle__toggle-icon">
2025 <svg
2026 class="pf-v6-svg"
2027 fill="currentColor"
2028 viewBox="0 0 20 20"
2029 aria-hidden="true"
2030 role="img"
2031 width="1em"
2032 height="1em"
2033 >
2034 <path
2035 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
2036 />
2037 </svg>
2038 </span>
2039 </span>
2040 </button>
2041 </div>
2042 &nbsp;
2043 <div
2044 class="pf-v6-c-menu-toggle pf-m-primary pf-m-expanded pf-m-split-button"
2045 id="split-button--primary-checkbox-expanded-example"
2046 >
2047 <label class="pf-v6-c-check pf-m-standalone">
2048 <input
2049 class="pf-v6-c-check__input"
2050 type="checkbox"
2051 id="split-button--primary-checkbox-expanded-example-input"
2052 name="split-button--primary-checkbox-expanded-example-input"
2053 aria-label="Select all items"
2054 />
2055 </label>
2056 <button
2057 class="pf-v6-c-menu-toggle__button"
2058 type="button"
2059 aria-expanded="true"
2060 id="split-button--primary-checkbox-expanded-example-toggle-button"
2061 aria-label="Menu toggle"
2062 >
2063 <span class="pf-v6-c-menu-toggle__controls">
2064 <span class="pf-v6-c-menu-toggle__toggle-icon">
2065 <svg
2066 class="pf-v6-svg"
2067 fill="currentColor"
2068 viewBox="0 0 20 20"
2069 aria-hidden="true"
2070 role="img"
2071 width="1em"
2072 height="1em"
2073 >
2074 <path
2075 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
2076 />
2077 </svg>
2078 </span>
2079 </span>
2080 </button>
2081 </div>
2082 &nbsp;
2083 <div
2084 class="pf-v6-c-menu-toggle pf-m-primary pf-m-split-button pf-m-disabled"
2085 id="split-button--primary-checkbox-disabled-example"
2086 >
2087 <label class="pf-v6-c-check pf-m-standalone">
2088 <input
2089 class="pf-v6-c-check__input"
2090 type="checkbox"
2091 disabled
2092 id="split-button--primary-checkbox-disabled-example-input"
2093 name="split-button--primary-checkbox-disabled-example-input"
2094 aria-label="Select all items"
2095 />
2096 </label>
2097 <button
2098 class="pf-v6-c-menu-toggle__button"
2099 type="button"
2100 aria-expanded="false"
2101 id="split-button--primary-checkbox-disabled-example-toggle-button"
2102 aria-label="Menu toggle"
2103 disabled
2104 >
2105 <span class="pf-v6-c-menu-toggle__controls">
2106 <span class="pf-v6-c-menu-toggle__toggle-icon">
2107 <svg
2108 class="pf-v6-svg"
2109 fill="currentColor"
2110 viewBox="0 0 20 20"
2111 aria-hidden="true"
2112 role="img"
2113 width="1em"
2114 height="1em"
2115 >
2116 <path
2117 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
2118 />
2119 </svg>
2120 </span>
2121 </span>
2122 </button>
2123 </div>
2124
2125 <br />
2126 <br />
2127
2128 <div
2129 class="pf-v6-c-menu-toggle pf-m-secondary pf-m-split-button"
2130 id="split-button-secondary-checkbox-example"
2131 >
2132 <label class="pf-v6-c-check pf-m-standalone">
2133 <input
2134 class="pf-v6-c-check__input"
2135 type="checkbox"
2136 id="split-button-secondary-checkbox-example-input"
2137 name="split-button-secondary-checkbox-example-input"
2138 aria-label="Select all items"
2139 />
2140 </label>
2141 <button
2142 class="pf-v6-c-menu-toggle__button"
2143 type="button"
2144 aria-expanded="false"
2145 id="split-button-secondary-checkbox-example-toggle-button"
2146 aria-label="Menu toggle"
2147 >
2148 <span class="pf-v6-c-menu-toggle__controls">
2149 <span class="pf-v6-c-menu-toggle__toggle-icon">
2150 <svg
2151 class="pf-v6-svg"
2152 fill="currentColor"
2153 viewBox="0 0 20 20"
2154 aria-hidden="true"
2155 role="img"
2156 width="1em"
2157 height="1em"
2158 >
2159 <path
2160 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
2161 />
2162 </svg>
2163 </span>
2164 </span>
2165 </button>
2166 </div>
2167 &nbsp;
2168 <div
2169 class="pf-v6-c-menu-toggle pf-m-secondary pf-m-expanded pf-m-split-button"
2170 id="split-button-secondary-checkbox-expanded-example"
2171 >
2172 <label class="pf-v6-c-check pf-m-standalone">
2173 <input
2174 class="pf-v6-c-check__input"
2175 type="checkbox"
2176 id="split-button-secondary-checkbox-expanded-example-input"
2177 name="split-button-secondary-checkbox-expanded-example-input"
2178 aria-label="Select all items"
2179 />
2180 </label>
2181 <button
2182 class="pf-v6-c-menu-toggle__button"
2183 type="button"
2184 aria-expanded="true"
2185 id="split-button-secondary-checkbox-expanded-example-toggle-button"
2186 aria-label="Menu toggle"
2187 >
2188 <span class="pf-v6-c-menu-toggle__controls">
2189 <span class="pf-v6-c-menu-toggle__toggle-icon">
2190 <svg
2191 class="pf-v6-svg"
2192 fill="currentColor"
2193 viewBox="0 0 20 20"
2194 aria-hidden="true"
2195 role="img"
2196 width="1em"
2197 height="1em"
2198 >
2199 <path
2200 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
2201 />
2202 </svg>
2203 </span>
2204 </span>
2205 </button>
2206 </div>
2207 &nbsp;
2208 <div
2209 class="pf-v6-c-menu-toggle pf-m-secondary pf-m-split-button pf-m-disabled"
2210 id="split-button-secondary-checkbox-disabled-example"
2211 >
2212 <label class="pf-v6-c-check pf-m-standalone">
2213 <input
2214 class="pf-v6-c-check__input"
2215 type="checkbox"
2216 disabled
2217 id="split-button-secondary-checkbox-disabled-example-input"
2218 name="split-button-secondary-checkbox-disabled-example-input"
2219 aria-label="Select all items"
2220 />
2221 </label>
2222 <button
2223 class="pf-v6-c-menu-toggle__button"
2224 type="button"
2225 aria-expanded="false"
2226 id="split-button-secondary-checkbox-disabled-example-toggle-button"
2227 aria-label="Menu toggle"
2228 disabled
2229 >
2230 <span class="pf-v6-c-menu-toggle__controls">
2231 <span class="pf-v6-c-menu-toggle__toggle-icon">
2232 <svg
2233 class="pf-v6-svg"
2234 fill="currentColor"
2235 viewBox="0 0 20 20"
2236 aria-hidden="true"
2237 role="img"
2238 width="1em"
2239 height="1em"
2240 >
2241 <path
2242 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
2243 />
2244 </svg>
2245 </span>
2246 </span>
2247 </button>
2248 </div>
2249
2250 ```
2251
2252 ### Split toggle with labeled checkbox
2253
2254 To add a label to a split toggle that will be linked to the checkbox, pass the text wrapped in `span.pf-v6-c-check__label` as a child to `label.pf-v6-c-check`. Clicking the text will update the checked state of the split toggle's checkbox. <br/> <br/>
2255 Shown with default, primary, and secondary styling
2256
2257 ```html
2258 <div
2259 class="pf-v6-c-menu-toggle pf-m-split-button"
2260 id="split-button-checkbox-with-toggle-text-example"
2261 >
2262 <label
2263 class="pf-v6-c-check"
2264 for="split-button-checkbox-with-toggle-text-example-input"
2265 >
2266 <input
2267 class="pf-v6-c-check__input"
2268 type="checkbox"
2269 id="split-button-checkbox-with-toggle-text-example-input"
2270 name="split-button-checkbox-with-toggle-text-example-input"
2271 />
2272 <span class="pf-v6-c-check__label">Select all items</span>
2273 </label>
2274 <button
2275 class="pf-v6-c-menu-toggle__button"
2276 type="button"
2277 aria-expanded="false"
2278 id="split-button-checkbox-with-toggle-text-example-toggle-button"
2279 aria-label="Menu toggle"
2280 >
2281 <span class="pf-v6-c-menu-toggle__controls">
2282 <span class="pf-v6-c-menu-toggle__toggle-icon">
2283 <svg
2284 class="pf-v6-svg"
2285 fill="currentColor"
2286 viewBox="0 0 20 20"
2287 aria-hidden="true"
2288 role="img"
2289 width="1em"
2290 height="1em"
2291 >
2292 <path
2293 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
2294 />
2295 </svg>
2296 </span>
2297 </span>
2298 </button>
2299 </div>
2300 &nbsp;
2301 <div
2302 class="pf-v6-c-menu-toggle pf-m-expanded pf-m-split-button"
2303 id="split-button-checkbox-with-toggle-text-expanded-example"
2304 >
2305 <label
2306 class="pf-v6-c-check"
2307 for="split-button-checkbox-with-toggle-text-expanded-example-input"
2308 >
2309 <input
2310 class="pf-v6-c-check__input"
2311 type="checkbox"
2312 id="split-button-checkbox-with-toggle-text-expanded-example-input"
2313 name="split-button-checkbox-with-toggle-text-expanded-example-input"
2314 />
2315 <span class="pf-v6-c-check__label">Select all items</span>
2316 </label>
2317 <button
2318 class="pf-v6-c-menu-toggle__button"
2319 type="button"
2320 aria-expanded="true"
2321 id="split-button-checkbox-with-toggle-text-expanded-example-toggle-button"
2322 aria-label="Menu toggle"
2323 >
2324 <span class="pf-v6-c-menu-toggle__controls">
2325 <span class="pf-v6-c-menu-toggle__toggle-icon">
2326 <svg
2327 class="pf-v6-svg"
2328 fill="currentColor"
2329 viewBox="0 0 20 20"
2330 aria-hidden="true"
2331 role="img"
2332 width="1em"
2333 height="1em"
2334 >
2335 <path
2336 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
2337 />
2338 </svg>
2339 </span>
2340 </span>
2341 </button>
2342 </div>
2343 &nbsp;
2344 <div
2345 class="pf-v6-c-menu-toggle pf-m-split-button pf-m-disabled"
2346 id="split-button-checkbox-with-toggle-text-disabled-example"
2347 >
2348 <label
2349 class="pf-v6-c-check"
2350 for="split-button-checkbox-with-toggle-text-disabled-example-input"
2351 >
2352 <input
2353 class="pf-v6-c-check__input"
2354 type="checkbox"
2355 disabled
2356 id="split-button-checkbox-with-toggle-text-disabled-example-input"
2357 name="split-button-checkbox-with-toggle-text-disabled-example-input"
2358 />
2359 <span class="pf-v6-c-check__label pf-m-disabled">Select all items</span>
2360 </label>
2361 <button
2362 class="pf-v6-c-menu-toggle__button"
2363 type="button"
2364 aria-expanded="false"
2365 id="split-button-checkbox-with-toggle-text-disabled-example-toggle-button"
2366 aria-label="Menu toggle"
2367 disabled
2368 >
2369 <span class="pf-v6-c-menu-toggle__controls">
2370 <span class="pf-v6-c-menu-toggle__toggle-icon">
2371 <svg
2372 class="pf-v6-svg"
2373 fill="currentColor"
2374 viewBox="0 0 20 20"
2375 aria-hidden="true"
2376 role="img"
2377 width="1em"
2378 height="1em"
2379 >
2380 <path
2381 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
2382 />
2383 </svg>
2384 </span>
2385 </span>
2386 </button>
2387 </div>
2388
2389 <br />
2390 <br />
2391
2392 <div
2393 class="pf-v6-c-menu-toggle pf-m-primary pf-m-split-button"
2394 id="split-button-checkbox-primary-example"
2395 >
2396 <label
2397 class="pf-v6-c-check"
2398 for="split-button-checkbox-primary-example-input"
2399 >
2400 <input
2401 class="pf-v6-c-check__input"
2402 type="checkbox"
2403 id="split-button-checkbox-primary-example-input"
2404 name="split-button-checkbox-primary-example-input"
2405 />
2406 <span class="pf-v6-c-check__label">Select all items</span>
2407 </label>
2408 <button
2409 class="pf-v6-c-menu-toggle__button"
2410 type="button"
2411 aria-expanded="false"
2412 id="split-button-checkbox-primary-example-toggle-button"
2413 aria-label="Menu toggle"
2414 >
2415 <span class="pf-v6-c-menu-toggle__controls">
2416 <span class="pf-v6-c-menu-toggle__toggle-icon">
2417 <svg
2418 class="pf-v6-svg"
2419 fill="currentColor"
2420 viewBox="0 0 20 20"
2421 aria-hidden="true"
2422 role="img"
2423 width="1em"
2424 height="1em"
2425 >
2426 <path
2427 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
2428 />
2429 </svg>
2430 </span>
2431 </span>
2432 </button>
2433 </div>
2434 &nbsp;
2435 <div
2436 class="pf-v6-c-menu-toggle pf-m-primary pf-m-expanded pf-m-split-button"
2437 id="split-button-checkbox-primary-expanded-example"
2438 >
2439 <label
2440 class="pf-v6-c-check"
2441 for="split-button-checkbox-primary-expanded-example-input"
2442 >
2443 <input
2444 class="pf-v6-c-check__input"
2445 type="checkbox"
2446 id="split-button-checkbox-primary-expanded-example-input"
2447 name="split-button-checkbox-primary-expanded-example-input"
2448 />
2449 <span class="pf-v6-c-check__label">Select all items</span>
2450 </label>
2451 <button
2452 class="pf-v6-c-menu-toggle__button"
2453 type="button"
2454 aria-expanded="true"
2455 id="split-button-checkbox-primary-expanded-example-toggle-button"
2456 aria-label="Menu toggle"
2457 >
2458 <span class="pf-v6-c-menu-toggle__controls">
2459 <span class="pf-v6-c-menu-toggle__toggle-icon">
2460 <svg
2461 class="pf-v6-svg"
2462 fill="currentColor"
2463 viewBox="0 0 20 20"
2464 aria-hidden="true"
2465 role="img"
2466 width="1em"
2467 height="1em"
2468 >
2469 <path
2470 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
2471 />
2472 </svg>
2473 </span>
2474 </span>
2475 </button>
2476 </div>
2477 &nbsp;
2478 <div
2479 class="pf-v6-c-menu-toggle pf-m-primary pf-m-split-button pf-m-disabled"
2480 id="split-button-checkbox-primary-disabled-example"
2481 >
2482 <label
2483 class="pf-v6-c-check"
2484 for="split-button-checkbox-primary-disabled-example-input"
2485 >
2486 <input
2487 class="pf-v6-c-check__input"
2488 type="checkbox"
2489 disabled
2490 id="split-button-checkbox-primary-disabled-example-input"
2491 name="split-button-checkbox-primary-disabled-example-input"
2492 />
2493 <span class="pf-v6-c-check__label pf-m-disabled">Select all items</span>
2494 </label>
2495 <button
2496 class="pf-v6-c-menu-toggle__button"
2497 type="button"
2498 aria-expanded="false"
2499 id="split-button-checkbox-primary-disabled-example-toggle-button"
2500 aria-label="Menu toggle"
2501 disabled
2502 >
2503 <span class="pf-v6-c-menu-toggle__controls">
2504 <span class="pf-v6-c-menu-toggle__toggle-icon">
2505 <svg
2506 class="pf-v6-svg"
2507 fill="currentColor"
2508 viewBox="0 0 20 20"
2509 aria-hidden="true"
2510 role="img"
2511 width="1em"
2512 height="1em"
2513 >
2514 <path
2515 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
2516 />
2517 </svg>
2518 </span>
2519 </span>
2520 </button>
2521 </div>
2522
2523 <br />
2524 <br />
2525
2526 <div
2527 class="pf-v6-c-menu-toggle pf-m-secondary pf-m-split-button"
2528 id="split-button-checkbox-secondary-example"
2529 >
2530 <label
2531 class="pf-v6-c-check"
2532 for="split-button-checkbox-secondary-example-input"
2533 >
2534 <input
2535 class="pf-v6-c-check__input"
2536 type="checkbox"
2537 id="split-button-checkbox-secondary-example-input"
2538 name="split-button-checkbox-secondary-example-input"
2539 />
2540 <span class="pf-v6-c-check__label">Select all items</span>
2541 </label>
2542 <button
2543 class="pf-v6-c-menu-toggle__button"
2544 type="button"
2545 aria-expanded="false"
2546 id="split-button-checkbox-secondary-example-toggle-button"
2547 aria-label="Menu toggle"
2548 >
2549 <span class="pf-v6-c-menu-toggle__controls">
2550 <span class="pf-v6-c-menu-toggle__toggle-icon">
2551 <svg
2552 class="pf-v6-svg"
2553 fill="currentColor"
2554 viewBox="0 0 20 20"
2555 aria-hidden="true"
2556 role="img"
2557 width="1em"
2558 height="1em"
2559 >
2560 <path
2561 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
2562 />
2563 </svg>
2564 </span>
2565 </span>
2566 </button>
2567 </div>
2568 &nbsp;
2569 <div
2570 class="pf-v6-c-menu-toggle pf-m-secondary pf-m-expanded pf-m-split-button"
2571 id="split-button-checkbox-secondary-expanded-example"
2572 >
2573 <label
2574 class="pf-v6-c-check"
2575 for="split-button-checkbox-secondary-expanded-example-input"
2576 >
2577 <input
2578 class="pf-v6-c-check__input"
2579 type="checkbox"
2580 id="split-button-checkbox-secondary-expanded-example-input"
2581 name="split-button-checkbox-secondary-expanded-example-input"
2582 />
2583 <span class="pf-v6-c-check__label">Select all items</span>
2584 </label>
2585 <button
2586 class="pf-v6-c-menu-toggle__button"
2587 type="button"
2588 aria-expanded="true"
2589 id="split-button-checkbox-secondary-expanded-example-toggle-button"
2590 aria-label="Menu toggle"
2591 >
2592 <span class="pf-v6-c-menu-toggle__controls">
2593 <span class="pf-v6-c-menu-toggle__toggle-icon">
2594 <svg
2595 class="pf-v6-svg"
2596 fill="currentColor"
2597 viewBox="0 0 20 20"
2598 aria-hidden="true"
2599 role="img"
2600 width="1em"
2601 height="1em"
2602 >
2603 <path
2604 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
2605 />
2606 </svg>
2607 </span>
2608 </span>
2609 </button>
2610 </div>
2611 &nbsp;
2612 <div
2613 class="pf-v6-c-menu-toggle pf-m-secondary pf-m-split-button pf-m-disabled"
2614 id="split-button-checkbox-secondary-disabled-example"
2615 >
2616 <label
2617 class="pf-v6-c-check"
2618 for="split-button-checkbox-secondary-disabled-example-input"
2619 >
2620 <input
2621 class="pf-v6-c-check__input"
2622 type="checkbox"
2623 disabled
2624 id="split-button-checkbox-secondary-disabled-example-input"
2625 name="split-button-checkbox-secondary-disabled-example-input"
2626 />
2627 <span class="pf-v6-c-check__label pf-m-disabled">Select all items</span>
2628 </label>
2629 <button
2630 class="pf-v6-c-menu-toggle__button"
2631 type="button"
2632 aria-expanded="false"
2633 id="split-button-checkbox-secondary-disabled-example-toggle-button"
2634 aria-label="Menu toggle"
2635 disabled
2636 >
2637 <span class="pf-v6-c-menu-toggle__controls">
2638 <span class="pf-v6-c-menu-toggle__toggle-icon">
2639 <svg
2640 class="pf-v6-svg"
2641 fill="currentColor"
2642 viewBox="0 0 20 20"
2643 aria-hidden="true"
2644 role="img"
2645 width="1em"
2646 height="1em"
2647 >
2648 <path
2649 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
2650 />
2651 </svg>
2652 </span>
2653 </span>
2654 </button>
2655 </div>
2656
2657 ```
2658
2659 ### Split toggle with checkbox and toggle text
2660
2661 To add a label to a split toggle that will be linked to the toggle button, pass the text wrapped in `span.pf-v6-c-menu-toggle__text` as a child to `button.pf-v6-c-menu-toggle__button.pf-m-text`. Clicking the text should trigger any click action on the toggle. <br/> <br/>
2662 Shown with default, primary, and secondary styling
2663
2664 ```html
2665 <div
2666 class="pf-v6-c-menu-toggle pf-m-split-button"
2667 id="split-button-checkbox-with-toggle-button-text-example"
2668 >
2669 <label class="pf-v6-c-check pf-m-standalone">
2670 <input
2671 class="pf-v6-c-check__input"
2672 type="checkbox"
2673 id="split-button-checkbox-with-toggle-button-text-example-input"
2674 name="split-button-checkbox-with-toggle-button-text-example-input"
2675 aria-label="Select all items"
2676 />
2677 </label>
2678 <button
2679 class="pf-v6-c-menu-toggle__button pf-m-text"
2680 type="button"
2681 aria-expanded="false"
2682 id="split-button-checkbox-with-toggle-button-text-example-toggle-button"
2683 aria-label="Menu toggle"
2684 >
2685 <span class="pf-v6-c-menu-toggle__text">Toggle button text</span>
2686 <span class="pf-v6-c-menu-toggle__controls">
2687 <span class="pf-v6-c-menu-toggle__toggle-icon">
2688 <svg
2689 class="pf-v6-svg"
2690 fill="currentColor"
2691 viewBox="0 0 20 20"
2692 aria-hidden="true"
2693 role="img"
2694 width="1em"
2695 height="1em"
2696 >
2697 <path
2698 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
2699 />
2700 </svg>
2701 </span>
2702 </span>
2703 </button>
2704 </div>&nbsp;
2705 <div
2706 class="pf-v6-c-menu-toggle pf-m-expanded pf-m-split-button"
2707 id="split-button-checkbox-with-toggle-button-text-expanded-example"
2708 >
2709 <label class="pf-v6-c-check pf-m-standalone">
2710 <input
2711 class="pf-v6-c-check__input"
2712 type="checkbox"
2713 id="split-button-checkbox-with-toggle-button-text-expanded-example-input"
2714 name="split-button-checkbox-with-toggle-button-text-expanded-example-input"
2715 aria-label="Select all items"
2716 />
2717 </label>
2718 <button
2719 class="pf-v6-c-menu-toggle__button pf-m-text"
2720 type="button"
2721 aria-expanded="true"
2722 id="split-button-checkbox-with-toggle-button-text-expanded-example-toggle-button"
2723 aria-label="Menu toggle"
2724 >
2725 <span class="pf-v6-c-menu-toggle__text">Toggle button text</span>
2726 <span class="pf-v6-c-menu-toggle__controls">
2727 <span class="pf-v6-c-menu-toggle__toggle-icon">
2728 <svg
2729 class="pf-v6-svg"
2730 fill="currentColor"
2731 viewBox="0 0 20 20"
2732 aria-hidden="true"
2733 role="img"
2734 width="1em"
2735 height="1em"
2736 >
2737 <path
2738 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
2739 />
2740 </svg>
2741 </span>
2742 </span>
2743 </button>
2744 </div>&nbsp;
2745 <div
2746 class="pf-v6-c-menu-toggle pf-m-split-button pf-m-disabled"
2747 id="split-button-checkbox-with-toggle-button-text-disabled-example"
2748 >
2749 <label class="pf-v6-c-check pf-m-standalone">
2750 <input
2751 class="pf-v6-c-check__input"
2752 type="checkbox"
2753 disabled
2754 id="split-button-checkbox-with-toggle-button-text-disabled-example-input"
2755 name="split-button-checkbox-with-toggle-button-text-disabled-example-input"
2756 aria-label="Select all items"
2757 />
2758 </label>
2759 <button
2760 class="pf-v6-c-menu-toggle__button pf-m-text"
2761 type="button"
2762 aria-expanded="false"
2763 id="split-button-checkbox-with-toggle-button-text-disabled-example-toggle-button"
2764 aria-label="Menu toggle"
2765 disabled
2766 >
2767 <span class="pf-v6-c-menu-toggle__text">Toggle button text</span>
2768 <span class="pf-v6-c-menu-toggle__controls">
2769 <span class="pf-v6-c-menu-toggle__toggle-icon">
2770 <svg
2771 class="pf-v6-svg"
2772 fill="currentColor"
2773 viewBox="0 0 20 20"
2774 aria-hidden="true"
2775 role="img"
2776 width="1em"
2777 height="1em"
2778 >
2779 <path
2780 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
2781 />
2782 </svg>
2783 </span>
2784 </span>
2785 </button>
2786 </div>
2787
2788 <br />
2789 <br />
2790
2791 <div
2792 class="pf-v6-c-menu-toggle pf-m-primary pf-m-split-button"
2793 id="split-button-primary-checkbox-with-toggle-button-text-example"
2794 >
2795 <label class="pf-v6-c-check pf-m-standalone">
2796 <input
2797 class="pf-v6-c-check__input"
2798 type="checkbox"
2799 id="split-button-primary-checkbox-with-toggle-button-text-example-input"
2800 name="split-button-primary-checkbox-with-toggle-button-text-example-input"
2801 aria-label="Select all items"
2802 />
2803 </label>
2804 <button
2805 class="pf-v6-c-menu-toggle__button pf-m-text"
2806 type="button"
2807 aria-expanded="false"
2808 id="split-button-primary-checkbox-with-toggle-button-text-example-toggle-button"
2809 aria-label="Menu toggle"
2810 >
2811 <span class="pf-v6-c-menu-toggle__text">Toggle button text</span>
2812 <span class="pf-v6-c-menu-toggle__controls">
2813 <span class="pf-v6-c-menu-toggle__toggle-icon">
2814 <svg
2815 class="pf-v6-svg"
2816 fill="currentColor"
2817 viewBox="0 0 20 20"
2818 aria-hidden="true"
2819 role="img"
2820 width="1em"
2821 height="1em"
2822 >
2823 <path
2824 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
2825 />
2826 </svg>
2827 </span>
2828 </span>
2829 </button>
2830 </div>&nbsp;
2831 <div
2832 class="pf-v6-c-menu-toggle pf-m-primary pf-m-expanded pf-m-split-button"
2833 id="split-button-primary-checkbox-with-toggle-button-text-expanded-example"
2834 >
2835 <label class="pf-v6-c-check pf-m-standalone">
2836 <input
2837 class="pf-v6-c-check__input"
2838 type="checkbox"
2839 id="split-button-primary-checkbox-with-toggle-button-text-expanded-example-input"
2840 name="split-button-primary-checkbox-with-toggle-button-text-expanded-example-input"
2841 aria-label="Select all items"
2842 />
2843 </label>
2844 <button
2845 class="pf-v6-c-menu-toggle__button pf-m-text"
2846 type="button"
2847 aria-expanded="true"
2848 id="split-button-primary-checkbox-with-toggle-button-text-expanded-example-toggle-button"
2849 aria-label="Menu toggle"
2850 >
2851 <span class="pf-v6-c-menu-toggle__text">Toggle button text</span>
2852 <span class="pf-v6-c-menu-toggle__controls">
2853 <span class="pf-v6-c-menu-toggle__toggle-icon">
2854 <svg
2855 class="pf-v6-svg"
2856 fill="currentColor"
2857 viewBox="0 0 20 20"
2858 aria-hidden="true"
2859 role="img"
2860 width="1em"
2861 height="1em"
2862 >
2863 <path
2864 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
2865 />
2866 </svg>
2867 </span>
2868 </span>
2869 </button>
2870 </div>&nbsp;
2871 <div
2872 class="pf-v6-c-menu-toggle pf-m-primary pf-m-split-button pf-m-disabled"
2873 id="split-button-primary-checkbox-with-toggle-button-text-disabled-example"
2874 >
2875 <label class="pf-v6-c-check pf-m-standalone">
2876 <input
2877 class="pf-v6-c-check__input"
2878 type="checkbox"
2879 disabled
2880 id="split-button-primary-checkbox-with-toggle-button-text-disabled-example-input"
2881 name="split-button-primary-checkbox-with-toggle-button-text-disabled-example-input"
2882 aria-label="Select all items"
2883 />
2884 </label>
2885 <button
2886 class="pf-v6-c-menu-toggle__button pf-m-text"
2887 type="button"
2888 aria-expanded="false"
2889 id="split-button-primary-checkbox-with-toggle-button-text-disabled-example-toggle-button"
2890 aria-label="Menu toggle"
2891 disabled
2892 >
2893 <span class="pf-v6-c-menu-toggle__text">Toggle button text</span>
2894 <span class="pf-v6-c-menu-toggle__controls">
2895 <span class="pf-v6-c-menu-toggle__toggle-icon">
2896 <svg
2897 class="pf-v6-svg"
2898 fill="currentColor"
2899 viewBox="0 0 20 20"
2900 aria-hidden="true"
2901 role="img"
2902 width="1em"
2903 height="1em"
2904 >
2905 <path
2906 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
2907 />
2908 </svg>
2909 </span>
2910 </span>
2911 </button>
2912 </div>
2913
2914 <br />
2915 <br />
2916
2917 <div
2918 class="pf-v6-c-menu-toggle pf-m-secondary pf-m-split-button"
2919 id="split-button-secondary-checkbox-with-toggle-button-text-example"
2920 >
2921 <label class="pf-v6-c-check pf-m-standalone">
2922 <input
2923 class="pf-v6-c-check__input"
2924 type="checkbox"
2925 id="split-button-secondary-checkbox-with-toggle-button-text-example-input"
2926 name="split-button-secondary-checkbox-with-toggle-button-text-example-input"
2927 aria-label="Select all items"
2928 />
2929 </label>
2930 <button
2931 class="pf-v6-c-menu-toggle__button pf-m-text"
2932 type="button"
2933 aria-expanded="false"
2934 id="split-button-secondary-checkbox-with-toggle-button-text-example-toggle-button"
2935 aria-label="Menu toggle"
2936 >
2937 <span class="pf-v6-c-menu-toggle__text">Toggle button text</span>
2938 <span class="pf-v6-c-menu-toggle__controls">
2939 <span class="pf-v6-c-menu-toggle__toggle-icon">
2940 <svg
2941 class="pf-v6-svg"
2942 fill="currentColor"
2943 viewBox="0 0 20 20"
2944 aria-hidden="true"
2945 role="img"
2946 width="1em"
2947 height="1em"
2948 >
2949 <path
2950 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
2951 />
2952 </svg>
2953 </span>
2954 </span>
2955 </button>
2956 </div>&nbsp;
2957 <div
2958 class="pf-v6-c-menu-toggle pf-m-secondary pf-m-expanded pf-m-split-button"
2959 id="split-button-secondary-checkbox-with-toggle-button-text-expanded-example"
2960 >
2961 <label class="pf-v6-c-check pf-m-standalone">
2962 <input
2963 class="pf-v6-c-check__input"
2964 type="checkbox"
2965 id="split-button-secondary-checkbox-with-toggle-button-text-expanded-example-input"
2966 name="split-button-secondary-checkbox-with-toggle-button-text-expanded-example-input"
2967 aria-label="Select all items"
2968 />
2969 </label>
2970 <button
2971 class="pf-v6-c-menu-toggle__button pf-m-text"
2972 type="button"
2973 aria-expanded="true"
2974 id="split-button-secondary-checkbox-with-toggle-button-text-expanded-example-toggle-button"
2975 aria-label="Menu toggle"
2976 >
2977 <span class="pf-v6-c-menu-toggle__text">Toggle button text</span>
2978 <span class="pf-v6-c-menu-toggle__controls">
2979 <span class="pf-v6-c-menu-toggle__toggle-icon">
2980 <svg
2981 class="pf-v6-svg"
2982 fill="currentColor"
2983 viewBox="0 0 20 20"
2984 aria-hidden="true"
2985 role="img"
2986 width="1em"
2987 height="1em"
2988 >
2989 <path
2990 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
2991 />
2992 </svg>
2993 </span>
2994 </span>
2995 </button>
2996 </div>&nbsp;
2997 <div
2998 class="pf-v6-c-menu-toggle pf-m-secondary pf-m-split-button pf-m-disabled"
2999 id="split-button-secondary-checkbox-with-toggle-button-text-disabled-example"
3000 >
3001 <label class="pf-v6-c-check pf-m-standalone">
3002 <input
3003 class="pf-v6-c-check__input"
3004 type="checkbox"
3005 disabled
3006 id="split-button-secondary-checkbox-with-toggle-button-text-disabled-example-input"
3007 name="split-button-secondary-checkbox-with-toggle-button-text-disabled-example-input"
3008 aria-label="Select all items"
3009 />
3010 </label>
3011 <button
3012 class="pf-v6-c-menu-toggle__button pf-m-text"
3013 type="button"
3014 aria-expanded="false"
3015 id="split-button-secondary-checkbox-with-toggle-button-text-disabled-example-toggle-button"
3016 aria-label="Menu toggle"
3017 disabled
3018 >
3019 <span class="pf-v6-c-menu-toggle__text">Toggle button text</span>
3020 <span class="pf-v6-c-menu-toggle__controls">
3021 <span class="pf-v6-c-menu-toggle__toggle-icon">
3022 <svg
3023 class="pf-v6-svg"
3024 fill="currentColor"
3025 viewBox="0 0 20 20"
3026 aria-hidden="true"
3027 role="img"
3028 width="1em"
3029 height="1em"
3030 >
3031 <path
3032 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
3033 />
3034 </svg>
3035 </span>
3036 </span>
3037 </button>
3038 </div>
3039
3040 ```
3041
3042 ### Split toggle with checkbox, icon, and toggle text
3043
3044 To add a label to a split toggle that will be linked to the toggle button, pass the text wrapped in `span.pf-v6-c-menu-toggle__text` as a child to `button.pf-v6-c-menu-toggle__button.pf-m-text`. Clicking the text should trigger any click action on the toggle. <br/> <br/>
3045 Shown with default, primary, and secondary styling
3046
3047 ```html
3048 <div
3049 class="pf-v6-c-menu-toggle pf-m-split-button"
3050 id="split-button-checkbox-with-toggle-button-icon-text-example"
3051 >
3052 <label class="pf-v6-c-check pf-m-standalone">
3053 <input
3054 class="pf-v6-c-check__input"
3055 type="checkbox"
3056 id="split-button-checkbox-with-toggle-button-icon-text-example-input"
3057 name="split-button-checkbox-with-toggle-button-icon-text-example-input"
3058 aria-label="Select all items"
3059 />
3060 </label>
3061 <button
3062 class="pf-v6-c-menu-toggle__button pf-m-text"
3063 type="button"
3064 aria-expanded="false"
3065 id="split-button-checkbox-with-toggle-button-icon-text-example-toggle-button"
3066 aria-label="Menu toggle"
3067 >
3068 <span class="pf-v6-c-menu-toggle__icon">
3069 <svg
3070 class="pf-v6-svg"
3071 fill="currentColor"
3072 viewBox="0 0 32 32"
3073 aria-hidden="true"
3074 role="img"
3075 width="1em"
3076 height="1em"
3077 >
3078 <path
3079 d="M26.463 16.845a9.635 9.635 0 0 0-.002-1.688l3.41-1.974a.5.5 0 0 0 .235-.548 14.47 14.47 0 0 0-4.142-7.167.5.5 0 0 0-.594-.07l-3.404 1.97c-.469-.326-.96-.61-1.466-.85V2.58a.5.5 0 0 0-.356-.48 14.662 14.662 0 0 0-8.288 0 .5.5 0 0 0-.356.48v3.944c-.513.245-1.003.528-1.462.846L6.63 5.397a.5.5 0 0 0-.594.07 14.47 14.47 0 0 0-4.142 7.168.5.5 0 0 0 .236.548l3.407 1.972a9.635 9.635 0 0 0 .002 1.688l-3.41 1.974a.5.5 0 0 0-.235.548 14.47 14.47 0 0 0 4.142 7.167c.16.154.405.18.594.07l3.404-1.97c.469.326.96.61 1.466.85v3.938a.5.5 0 0 0 .356.48c1.333.398 2.728.6 4.144.6s2.81-.202 4.144-.6a.5.5 0 0 0 .356-.48v-3.944a10.449 10.449 0 0 0 1.462-.846l3.408 1.973a.5.5 0 0 0 .594-.07 14.47 14.47 0 0 0 4.142-7.168.5.5 0 0 0-.236-.548l-3.407-1.972ZM16 21c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5Z"
3080 />
3081 </svg>
3082 </span>
3083 <span class="pf-v6-c-menu-toggle__text">Icon</span>
3084 <span class="pf-v6-c-menu-toggle__controls">
3085 <span class="pf-v6-c-menu-toggle__toggle-icon">
3086 <svg
3087 class="pf-v6-svg"
3088 fill="currentColor"
3089 viewBox="0 0 20 20"
3090 aria-hidden="true"
3091 role="img"
3092 width="1em"
3093 height="1em"
3094 >
3095 <path
3096 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
3097 />
3098 </svg>
3099 </span>
3100 </span>
3101 </button>
3102 </div>&nbsp;
3103 <div
3104 class="pf-v6-c-menu-toggle pf-m-expanded pf-m-split-button"
3105 id="split-button-checkbox-with-toggle-button-icon-text-expanded-example"
3106 >
3107 <label class="pf-v6-c-check pf-m-standalone">
3108 <input
3109 class="pf-v6-c-check__input"
3110 type="checkbox"
3111 id="split-button-checkbox-with-toggle-button-icon-text-expanded-example-input"
3112 name="split-button-checkbox-with-toggle-button-icon-text-expanded-example-input"
3113 aria-label="Select all items"
3114 />
3115 </label>
3116 <button
3117 class="pf-v6-c-menu-toggle__button pf-m-text"
3118 type="button"
3119 aria-expanded="true"
3120 id="split-button-checkbox-with-toggle-button-icon-text-expanded-example-toggle-button"
3121 aria-label="Menu toggle"
3122 >
3123 <span class="pf-v6-c-menu-toggle__icon">
3124 <svg
3125 class="pf-v6-svg"
3126 fill="currentColor"
3127 viewBox="0 0 32 32"
3128 aria-hidden="true"
3129 role="img"
3130 width="1em"
3131 height="1em"
3132 >
3133 <path
3134 d="M26.463 16.845a9.635 9.635 0 0 0-.002-1.688l3.41-1.974a.5.5 0 0 0 .235-.548 14.47 14.47 0 0 0-4.142-7.167.5.5 0 0 0-.594-.07l-3.404 1.97c-.469-.326-.96-.61-1.466-.85V2.58a.5.5 0 0 0-.356-.48 14.662 14.662 0 0 0-8.288 0 .5.5 0 0 0-.356.48v3.944c-.513.245-1.003.528-1.462.846L6.63 5.397a.5.5 0 0 0-.594.07 14.47 14.47 0 0 0-4.142 7.168.5.5 0 0 0 .236.548l3.407 1.972a9.635 9.635 0 0 0 .002 1.688l-3.41 1.974a.5.5 0 0 0-.235.548 14.47 14.47 0 0 0 4.142 7.167c.16.154.405.18.594.07l3.404-1.97c.469.326.96.61 1.466.85v3.938a.5.5 0 0 0 .356.48c1.333.398 2.728.6 4.144.6s2.81-.202 4.144-.6a.5.5 0 0 0 .356-.48v-3.944a10.449 10.449 0 0 0 1.462-.846l3.408 1.973a.5.5 0 0 0 .594-.07 14.47 14.47 0 0 0 4.142-7.168.5.5 0 0 0-.236-.548l-3.407-1.972ZM16 21c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5Z"
3135 />
3136 </svg>
3137 </span>
3138 <span class="pf-v6-c-menu-toggle__text">Icon</span>
3139 <span class="pf-v6-c-menu-toggle__controls">
3140 <span class="pf-v6-c-menu-toggle__toggle-icon">
3141 <svg
3142 class="pf-v6-svg"
3143 fill="currentColor"
3144 viewBox="0 0 20 20"
3145 aria-hidden="true"
3146 role="img"
3147 width="1em"
3148 height="1em"
3149 >
3150 <path
3151 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
3152 />
3153 </svg>
3154 </span>
3155 </span>
3156 </button>
3157 </div>&nbsp;
3158 <div
3159 class="pf-v6-c-menu-toggle pf-m-split-button pf-m-disabled"
3160 id="split-button-checkbox-with-toggle-button-icon-text-disabled-example"
3161 >
3162 <label class="pf-v6-c-check pf-m-standalone">
3163 <input
3164 class="pf-v6-c-check__input"
3165 type="checkbox"
3166 disabled
3167 id="split-button-checkbox-with-toggle-button-icon-text-disabled-example-input"
3168 name="split-button-checkbox-with-toggle-button-icon-text-disabled-example-input"
3169 aria-label="Select all items"
3170 />
3171 </label>
3172 <button
3173 class="pf-v6-c-menu-toggle__button pf-m-text"
3174 type="button"
3175 aria-expanded="false"
3176 id="split-button-checkbox-with-toggle-button-icon-text-disabled-example-toggle-button"
3177 aria-label="Menu toggle"
3178 disabled
3179 >
3180 <span class="pf-v6-c-menu-toggle__icon">
3181 <svg
3182 class="pf-v6-svg"
3183 fill="currentColor"
3184 viewBox="0 0 32 32"
3185 aria-hidden="true"
3186 role="img"
3187 width="1em"
3188 height="1em"
3189 >
3190 <path
3191 d="M26.463 16.845a9.635 9.635 0 0 0-.002-1.688l3.41-1.974a.5.5 0 0 0 .235-.548 14.47 14.47 0 0 0-4.142-7.167.5.5 0 0 0-.594-.07l-3.404 1.97c-.469-.326-.96-.61-1.466-.85V2.58a.5.5 0 0 0-.356-.48 14.662 14.662 0 0 0-8.288 0 .5.5 0 0 0-.356.48v3.944c-.513.245-1.003.528-1.462.846L6.63 5.397a.5.5 0 0 0-.594.07 14.47 14.47 0 0 0-4.142 7.168.5.5 0 0 0 .236.548l3.407 1.972a9.635 9.635 0 0 0 .002 1.688l-3.41 1.974a.5.5 0 0 0-.235.548 14.47 14.47 0 0 0 4.142 7.167c.16.154.405.18.594.07l3.404-1.97c.469.326.96.61 1.466.85v3.938a.5.5 0 0 0 .356.48c1.333.398 2.728.6 4.144.6s2.81-.202 4.144-.6a.5.5 0 0 0 .356-.48v-3.944a10.449 10.449 0 0 0 1.462-.846l3.408 1.973a.5.5 0 0 0 .594-.07 14.47 14.47 0 0 0 4.142-7.168.5.5 0 0 0-.236-.548l-3.407-1.972ZM16 21c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5Z"
3192 />
3193 </svg>
3194 </span>
3195 <span class="pf-v6-c-menu-toggle__text">Icon</span>
3196 <span class="pf-v6-c-menu-toggle__controls">
3197 <span class="pf-v6-c-menu-toggle__toggle-icon">
3198 <svg
3199 class="pf-v6-svg"
3200 fill="currentColor"
3201 viewBox="0 0 20 20"
3202 aria-hidden="true"
3203 role="img"
3204 width="1em"
3205 height="1em"
3206 >
3207 <path
3208 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
3209 />
3210 </svg>
3211 </span>
3212 </span>
3213 </button>
3214 </div>
3215
3216 <br />
3217 <br />
3218
3219 <div
3220 class="pf-v6-c-menu-toggle pf-m-primary pf-m-split-button"
3221 id="split-button-primary-checkbox-with-toggle-button-icon-text-example"
3222 >
3223 <label class="pf-v6-c-check pf-m-standalone">
3224 <input
3225 class="pf-v6-c-check__input"
3226 type="checkbox"
3227 id="split-button-primary-checkbox-with-toggle-button-icon-text-example-input"
3228 name="split-button-primary-checkbox-with-toggle-button-icon-text-example-input"
3229 aria-label="Select all items"
3230 />
3231 </label>
3232 <button
3233 class="pf-v6-c-menu-toggle__button pf-m-text"
3234 type="button"
3235 aria-expanded="false"
3236 id="split-button-primary-checkbox-with-toggle-button-icon-text-example-toggle-button"
3237 aria-label="Menu toggle"
3238 >
3239 <span class="pf-v6-c-menu-toggle__icon">
3240 <svg
3241 class="pf-v6-svg"
3242 fill="currentColor"
3243 viewBox="0 0 32 32"
3244 aria-hidden="true"
3245 role="img"
3246 width="1em"
3247 height="1em"
3248 >
3249 <path
3250 d="M26.463 16.845a9.635 9.635 0 0 0-.002-1.688l3.41-1.974a.5.5 0 0 0 .235-.548 14.47 14.47 0 0 0-4.142-7.167.5.5 0 0 0-.594-.07l-3.404 1.97c-.469-.326-.96-.61-1.466-.85V2.58a.5.5 0 0 0-.356-.48 14.662 14.662 0 0 0-8.288 0 .5.5 0 0 0-.356.48v3.944c-.513.245-1.003.528-1.462.846L6.63 5.397a.5.5 0 0 0-.594.07 14.47 14.47 0 0 0-4.142 7.168.5.5 0 0 0 .236.548l3.407 1.972a9.635 9.635 0 0 0 .002 1.688l-3.41 1.974a.5.5 0 0 0-.235.548 14.47 14.47 0 0 0 4.142 7.167c.16.154.405.18.594.07l3.404-1.97c.469.326.96.61 1.466.85v3.938a.5.5 0 0 0 .356.48c1.333.398 2.728.6 4.144.6s2.81-.202 4.144-.6a.5.5 0 0 0 .356-.48v-3.944a10.449 10.449 0 0 0 1.462-.846l3.408 1.973a.5.5 0 0 0 .594-.07 14.47 14.47 0 0 0 4.142-7.168.5.5 0 0 0-.236-.548l-3.407-1.972ZM16 21c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5Z"
3251 />
3252 </svg>
3253 </span>
3254 <span class="pf-v6-c-menu-toggle__text">Icon</span>
3255 <span class="pf-v6-c-menu-toggle__controls">
3256 <span class="pf-v6-c-menu-toggle__toggle-icon">
3257 <svg
3258 class="pf-v6-svg"
3259 fill="currentColor"
3260 viewBox="0 0 20 20"
3261 aria-hidden="true"
3262 role="img"
3263 width="1em"
3264 height="1em"
3265 >
3266 <path
3267 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
3268 />
3269 </svg>
3270 </span>
3271 </span>
3272 </button>
3273 </div>&nbsp;
3274 <div
3275 class="pf-v6-c-menu-toggle pf-m-primary pf-m-expanded pf-m-split-button"
3276 id="split-button-primary-checkbox-with-toggle-button-icon-text-expanded-example"
3277 >
3278 <label class="pf-v6-c-check pf-m-standalone">
3279 <input
3280 class="pf-v6-c-check__input"
3281 type="checkbox"
3282 id="split-button-primary-checkbox-with-toggle-button-icon-text-expanded-example-input"
3283 name="split-button-primary-checkbox-with-toggle-button-icon-text-expanded-example-input"
3284 aria-label="Select all items"
3285 />
3286 </label>
3287 <button
3288 class="pf-v6-c-menu-toggle__button pf-m-text"
3289 type="button"
3290 aria-expanded="true"
3291 id="split-button-primary-checkbox-with-toggle-button-icon-text-expanded-example-toggle-button"
3292 aria-label="Menu toggle"
3293 >
3294 <span class="pf-v6-c-menu-toggle__icon">
3295 <svg
3296 class="pf-v6-svg"
3297 fill="currentColor"
3298 viewBox="0 0 32 32"
3299 aria-hidden="true"
3300 role="img"
3301 width="1em"
3302 height="1em"
3303 >
3304 <path
3305 d="M26.463 16.845a9.635 9.635 0 0 0-.002-1.688l3.41-1.974a.5.5 0 0 0 .235-.548 14.47 14.47 0 0 0-4.142-7.167.5.5 0 0 0-.594-.07l-3.404 1.97c-.469-.326-.96-.61-1.466-.85V2.58a.5.5 0 0 0-.356-.48 14.662 14.662 0 0 0-8.288 0 .5.5 0 0 0-.356.48v3.944c-.513.245-1.003.528-1.462.846L6.63 5.397a.5.5 0 0 0-.594.07 14.47 14.47 0 0 0-4.142 7.168.5.5 0 0 0 .236.548l3.407 1.972a9.635 9.635 0 0 0 .002 1.688l-3.41 1.974a.5.5 0 0 0-.235.548 14.47 14.47 0 0 0 4.142 7.167c.16.154.405.18.594.07l3.404-1.97c.469.326.96.61 1.466.85v3.938a.5.5 0 0 0 .356.48c1.333.398 2.728.6 4.144.6s2.81-.202 4.144-.6a.5.5 0 0 0 .356-.48v-3.944a10.449 10.449 0 0 0 1.462-.846l3.408 1.973a.5.5 0 0 0 .594-.07 14.47 14.47 0 0 0 4.142-7.168.5.5 0 0 0-.236-.548l-3.407-1.972ZM16 21c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5Z"
3306 />
3307 </svg>
3308 </span>
3309 <span class="pf-v6-c-menu-toggle__text">Icon</span>
3310 <span class="pf-v6-c-menu-toggle__controls">
3311 <span class="pf-v6-c-menu-toggle__toggle-icon">
3312 <svg
3313 class="pf-v6-svg"
3314 fill="currentColor"
3315 viewBox="0 0 20 20"
3316 aria-hidden="true"
3317 role="img"
3318 width="1em"
3319 height="1em"
3320 >
3321 <path
3322 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
3323 />
3324 </svg>
3325 </span>
3326 </span>
3327 </button>
3328 </div>&nbsp;
3329 <div
3330 class="pf-v6-c-menu-toggle pf-m-primary pf-m-split-button pf-m-disabled"
3331 id="split-button-primary-checkbox-with-toggle-button-icon-text-disabled-example"
3332 >
3333 <label class="pf-v6-c-check pf-m-standalone">
3334 <input
3335 class="pf-v6-c-check__input"
3336 type="checkbox"
3337 disabled
3338 id="split-button-primary-checkbox-with-toggle-button-icon-text-disabled-example-input"
3339 name="split-button-primary-checkbox-with-toggle-button-icon-text-disabled-example-input"
3340 aria-label="Select all items"
3341 />
3342 </label>
3343 <button
3344 class="pf-v6-c-menu-toggle__button pf-m-text"
3345 type="button"
3346 aria-expanded="false"
3347 id="split-button-primary-checkbox-with-toggle-button-icon-text-disabled-example-toggle-button"
3348 aria-label="Menu toggle"
3349 disabled
3350 >
3351 <span class="pf-v6-c-menu-toggle__icon">
3352 <svg
3353 class="pf-v6-svg"
3354 fill="currentColor"
3355 viewBox="0 0 32 32"
3356 aria-hidden="true"
3357 role="img"
3358 width="1em"
3359 height="1em"
3360 >
3361 <path
3362 d="M26.463 16.845a9.635 9.635 0 0 0-.002-1.688l3.41-1.974a.5.5 0 0 0 .235-.548 14.47 14.47 0 0 0-4.142-7.167.5.5 0 0 0-.594-.07l-3.404 1.97c-.469-.326-.96-.61-1.466-.85V2.58a.5.5 0 0 0-.356-.48 14.662 14.662 0 0 0-8.288 0 .5.5 0 0 0-.356.48v3.944c-.513.245-1.003.528-1.462.846L6.63 5.397a.5.5 0 0 0-.594.07 14.47 14.47 0 0 0-4.142 7.168.5.5 0 0 0 .236.548l3.407 1.972a9.635 9.635 0 0 0 .002 1.688l-3.41 1.974a.5.5 0 0 0-.235.548 14.47 14.47 0 0 0 4.142 7.167c.16.154.405.18.594.07l3.404-1.97c.469.326.96.61 1.466.85v3.938a.5.5 0 0 0 .356.48c1.333.398 2.728.6 4.144.6s2.81-.202 4.144-.6a.5.5 0 0 0 .356-.48v-3.944a10.449 10.449 0 0 0 1.462-.846l3.408 1.973a.5.5 0 0 0 .594-.07 14.47 14.47 0 0 0 4.142-7.168.5.5 0 0 0-.236-.548l-3.407-1.972ZM16 21c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5Z"
3363 />
3364 </svg>
3365 </span>
3366 <span class="pf-v6-c-menu-toggle__text">Icon</span>
3367 <span class="pf-v6-c-menu-toggle__controls">
3368 <span class="pf-v6-c-menu-toggle__toggle-icon">
3369 <svg
3370 class="pf-v6-svg"
3371 fill="currentColor"
3372 viewBox="0 0 20 20"
3373 aria-hidden="true"
3374 role="img"
3375 width="1em"
3376 height="1em"
3377 >
3378 <path
3379 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
3380 />
3381 </svg>
3382 </span>
3383 </span>
3384 </button>
3385 </div>
3386
3387 <br />
3388 <br />
3389
3390 <div
3391 class="pf-v6-c-menu-toggle pf-m-secondary pf-m-split-button"
3392 id="split-button-secondary-checkbox-with-toggle-button-icon-text-example"
3393 >
3394 <label class="pf-v6-c-check pf-m-standalone">
3395 <input
3396 class="pf-v6-c-check__input"
3397 type="checkbox"
3398 id="split-button-secondary-checkbox-with-toggle-button-icon-text-example-input"
3399 name="split-button-secondary-checkbox-with-toggle-button-icon-text-example-input"
3400 aria-label="Select all items"
3401 />
3402 </label>
3403 <button
3404 class="pf-v6-c-menu-toggle__button pf-m-text"
3405 type="button"
3406 aria-expanded="false"
3407 id="split-button-secondary-checkbox-with-toggle-button-icon-text-example-toggle-button"
3408 aria-label="Menu toggle"
3409 >
3410 <span class="pf-v6-c-menu-toggle__icon">
3411 <svg
3412 class="pf-v6-svg"
3413 fill="currentColor"
3414 viewBox="0 0 32 32"
3415 aria-hidden="true"
3416 role="img"
3417 width="1em"
3418 height="1em"
3419 >
3420 <path
3421 d="M26.463 16.845a9.635 9.635 0 0 0-.002-1.688l3.41-1.974a.5.5 0 0 0 .235-.548 14.47 14.47 0 0 0-4.142-7.167.5.5 0 0 0-.594-.07l-3.404 1.97c-.469-.326-.96-.61-1.466-.85V2.58a.5.5 0 0 0-.356-.48 14.662 14.662 0 0 0-8.288 0 .5.5 0 0 0-.356.48v3.944c-.513.245-1.003.528-1.462.846L6.63 5.397a.5.5 0 0 0-.594.07 14.47 14.47 0 0 0-4.142 7.168.5.5 0 0 0 .236.548l3.407 1.972a9.635 9.635 0 0 0 .002 1.688l-3.41 1.974a.5.5 0 0 0-.235.548 14.47 14.47 0 0 0 4.142 7.167c.16.154.405.18.594.07l3.404-1.97c.469.326.96.61 1.466.85v3.938a.5.5 0 0 0 .356.48c1.333.398 2.728.6 4.144.6s2.81-.202 4.144-.6a.5.5 0 0 0 .356-.48v-3.944a10.449 10.449 0 0 0 1.462-.846l3.408 1.973a.5.5 0 0 0 .594-.07 14.47 14.47 0 0 0 4.142-7.168.5.5 0 0 0-.236-.548l-3.407-1.972ZM16 21c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5Z"
3422 />
3423 </svg>
3424 </span>
3425 <span class="pf-v6-c-menu-toggle__text">Icon</span>
3426 <span class="pf-v6-c-menu-toggle__controls">
3427 <span class="pf-v6-c-menu-toggle__toggle-icon">
3428 <svg
3429 class="pf-v6-svg"
3430 fill="currentColor"
3431 viewBox="0 0 20 20"
3432 aria-hidden="true"
3433 role="img"
3434 width="1em"
3435 height="1em"
3436 >
3437 <path
3438 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
3439 />
3440 </svg>
3441 </span>
3442 </span>
3443 </button>
3444 </div>&nbsp;
3445 <div
3446 class="pf-v6-c-menu-toggle pf-m-secondary pf-m-expanded pf-m-split-button"
3447 id="split-button-secondary-checkbox-with-toggle-button-icon-text-expanded-example"
3448 >
3449 <label class="pf-v6-c-check pf-m-standalone">
3450 <input
3451 class="pf-v6-c-check__input"
3452 type="checkbox"
3453 id="split-button-secondary-checkbox-with-toggle-button-icon-text-expanded-example-input"
3454 name="split-button-secondary-checkbox-with-toggle-button-icon-text-expanded-example-input"
3455 aria-label="Select all items"
3456 />
3457 </label>
3458 <button
3459 class="pf-v6-c-menu-toggle__button pf-m-text"
3460 type="button"
3461 aria-expanded="true"
3462 id="split-button-secondary-checkbox-with-toggle-button-icon-text-expanded-example-toggle-button"
3463 aria-label="Menu toggle"
3464 >
3465 <span class="pf-v6-c-menu-toggle__icon">
3466 <svg
3467 class="pf-v6-svg"
3468 fill="currentColor"
3469 viewBox="0 0 32 32"
3470 aria-hidden="true"
3471 role="img"
3472 width="1em"
3473 height="1em"
3474 >
3475 <path
3476 d="M26.463 16.845a9.635 9.635 0 0 0-.002-1.688l3.41-1.974a.5.5 0 0 0 .235-.548 14.47 14.47 0 0 0-4.142-7.167.5.5 0 0 0-.594-.07l-3.404 1.97c-.469-.326-.96-.61-1.466-.85V2.58a.5.5 0 0 0-.356-.48 14.662 14.662 0 0 0-8.288 0 .5.5 0 0 0-.356.48v3.944c-.513.245-1.003.528-1.462.846L6.63 5.397a.5.5 0 0 0-.594.07 14.47 14.47 0 0 0-4.142 7.168.5.5 0 0 0 .236.548l3.407 1.972a9.635 9.635 0 0 0 .002 1.688l-3.41 1.974a.5.5 0 0 0-.235.548 14.47 14.47 0 0 0 4.142 7.167c.16.154.405.18.594.07l3.404-1.97c.469.326.96.61 1.466.85v3.938a.5.5 0 0 0 .356.48c1.333.398 2.728.6 4.144.6s2.81-.202 4.144-.6a.5.5 0 0 0 .356-.48v-3.944a10.449 10.449 0 0 0 1.462-.846l3.408 1.973a.5.5 0 0 0 .594-.07 14.47 14.47 0 0 0 4.142-7.168.5.5 0 0 0-.236-.548l-3.407-1.972ZM16 21c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5Z"
3477 />
3478 </svg>
3479 </span>
3480 <span class="pf-v6-c-menu-toggle__text">Icon</span>
3481 <span class="pf-v6-c-menu-toggle__controls">
3482 <span class="pf-v6-c-menu-toggle__toggle-icon">
3483 <svg
3484 class="pf-v6-svg"
3485 fill="currentColor"
3486 viewBox="0 0 20 20"
3487 aria-hidden="true"
3488 role="img"
3489 width="1em"
3490 height="1em"
3491 >
3492 <path
3493 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
3494 />
3495 </svg>
3496 </span>
3497 </span>
3498 </button>
3499 </div>&nbsp;
3500 <div
3501 class="pf-v6-c-menu-toggle pf-m-secondary pf-m-split-button pf-m-disabled"
3502 id="split-button-secondary-checkbox-with-toggle-button-icon-text-disabled-example"
3503 >
3504 <label class="pf-v6-c-check pf-m-standalone">
3505 <input
3506 class="pf-v6-c-check__input"
3507 type="checkbox"
3508 disabled
3509 id="split-button-secondary-checkbox-with-toggle-button-icon-text-disabled-example-input"
3510 name="split-button-secondary-checkbox-with-toggle-button-icon-text-disabled-example-input"
3511 aria-label="Select all items"
3512 />
3513 </label>
3514 <button
3515 class="pf-v6-c-menu-toggle__button pf-m-text"
3516 type="button"
3517 aria-expanded="false"
3518 id="split-button-secondary-checkbox-with-toggle-button-icon-text-disabled-example-toggle-button"
3519 aria-label="Menu toggle"
3520 disabled
3521 >
3522 <span class="pf-v6-c-menu-toggle__icon">
3523 <svg
3524 class="pf-v6-svg"
3525 fill="currentColor"
3526 viewBox="0 0 32 32"
3527 aria-hidden="true"
3528 role="img"
3529 width="1em"
3530 height="1em"
3531 >
3532 <path
3533 d="M26.463 16.845a9.635 9.635 0 0 0-.002-1.688l3.41-1.974a.5.5 0 0 0 .235-.548 14.47 14.47 0 0 0-4.142-7.167.5.5 0 0 0-.594-.07l-3.404 1.97c-.469-.326-.96-.61-1.466-.85V2.58a.5.5 0 0 0-.356-.48 14.662 14.662 0 0 0-8.288 0 .5.5 0 0 0-.356.48v3.944c-.513.245-1.003.528-1.462.846L6.63 5.397a.5.5 0 0 0-.594.07 14.47 14.47 0 0 0-4.142 7.168.5.5 0 0 0 .236.548l3.407 1.972a9.635 9.635 0 0 0 .002 1.688l-3.41 1.974a.5.5 0 0 0-.235.548 14.47 14.47 0 0 0 4.142 7.167c.16.154.405.18.594.07l3.404-1.97c.469.326.96.61 1.466.85v3.938a.5.5 0 0 0 .356.48c1.333.398 2.728.6 4.144.6s2.81-.202 4.144-.6a.5.5 0 0 0 .356-.48v-3.944a10.449 10.449 0 0 0 1.462-.846l3.408 1.973a.5.5 0 0 0 .594-.07 14.47 14.47 0 0 0 4.142-7.168.5.5 0 0 0-.236-.548l-3.407-1.972ZM16 21c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5Z"
3534 />
3535 </svg>
3536 </span>
3537 <span class="pf-v6-c-menu-toggle__text">Icon</span>
3538 <span class="pf-v6-c-menu-toggle__controls">
3539 <span class="pf-v6-c-menu-toggle__toggle-icon">
3540 <svg
3541 class="pf-v6-svg"
3542 fill="currentColor"
3543 viewBox="0 0 20 20"
3544 aria-hidden="true"
3545 role="img"
3546 width="1em"
3547 height="1em"
3548 >
3549 <path
3550 d="m17.65 8.76-6.674 5.72a1.496 1.496 0 0 1-.976.365c-.347 0-.694-.122-.978-.366l-6.673-5.72A1 1 0 0 1 3 7h14a1 1 0 0 1 .65 1.76Z"
3551 />
3552 </svg>
3553 </span>
3554 </span>
3555 </button>
3556 </div>
3557
3558 ```
3559
3560 ### Settings
3561
3562 ```html
3563 <button
3564 class="pf-v6-c-menu-toggle pf-m-settings pf-m-plain"
3565 type="button"
3566 aria-expanded="false"
3567 aria-label="Settings"
3568 >
3569 <span class="pf-v6-c-menu-toggle__icon">
3570 <svg
3571 class="pf-v6-svg"
3572 fill="currentColor"
3573 viewBox="0 0 32 32"
3574 aria-hidden="true"
3575 role="img"
3576 width="1em"
3577 height="1em"
3578 >
3579 <path
3580 d="M26.463 16.845a9.635 9.635 0 0 0-.002-1.688l3.41-1.974a.5.5 0 0 0 .235-.548 14.47 14.47 0 0 0-4.142-7.167.5.5 0 0 0-.594-.07l-3.404 1.97c-.469-.326-.96-.61-1.466-.85V2.58a.5.5 0 0 0-.356-.48 14.662 14.662 0 0 0-8.288 0 .5.5 0 0 0-.356.48v3.944c-.513.245-1.003.528-1.462.846L6.63 5.397a.5.5 0 0 0-.594.07 14.47 14.47 0 0 0-4.142 7.168.5.5 0 0 0 .236.548l3.407 1.972a9.635 9.635 0 0 0 .002 1.688l-3.41 1.974a.5.5 0 0 0-.235.548 14.47 14.47 0 0 0 4.142 7.167c.16.154.405.18.594.07l3.404-1.97c.469.326.96.61 1.466.85v3.938a.5.5 0 0 0 .356.48c1.333.398 2.728.6 4.144.6s2.81-.202 4.144-.6a.5.5 0 0 0 .356-.48v-3.944a10.449 10.449 0 0 0 1.462-.846l3.408 1.973a.5.5 0 0 0 .594-.07 14.47 14.47 0 0 0 4.142-7.168.5.5 0 0 0-.236-.548l-3.407-1.972ZM16 21c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5Z"
3581 />
3582 </svg>
3583 </span>
3584 </button>
3585
3586 <button
3587 class="pf-v6-c-menu-toggle pf-m-settings pf-m-expanded pf-m-plain"
3588 type="button"
3589 aria-expanded="true"
3590 aria-label="Settings"
3591 >
3592 <span class="pf-v6-c-menu-toggle__icon">
3593 <svg
3594 class="pf-v6-svg"
3595 fill="currentColor"
3596 viewBox="0 0 32 32"
3597 aria-hidden="true"
3598 role="img"
3599 width="1em"
3600 height="1em"
3601 >
3602 <path
3603 d="M26.463 16.845a9.635 9.635 0 0 0-.002-1.688l3.41-1.974a.5.5 0 0 0 .235-.548 14.47 14.47 0 0 0-4.142-7.167.5.5 0 0 0-.594-.07l-3.404 1.97c-.469-.326-.96-.61-1.466-.85V2.58a.5.5 0 0 0-.356-.48 14.662 14.662 0 0 0-8.288 0 .5.5 0 0 0-.356.48v3.944c-.513.245-1.003.528-1.462.846L6.63 5.397a.5.5 0 0 0-.594.07 14.47 14.47 0 0 0-4.142 7.168.5.5 0 0 0 .236.548l3.407 1.972a9.635 9.635 0 0 0 .002 1.688l-3.41 1.974a.5.5 0 0 0-.235.548 14.47 14.47 0 0 0 4.142 7.167c.16.154.405.18.594.07l3.404-1.97c.469.326.96.61 1.466.85v3.938a.5.5 0 0 0 .356.48c1.333.398 2.728.6 4.144.6s2.81-.202 4.144-.6a.5.5 0 0 0 .356-.48v-3.944a10.449 10.449 0 0 0 1.462-.846l3.408 1.973a.5.5 0 0 0 .594-.07 14.47 14.47 0 0 0 4.142-7.168.5.5 0 0 0-.236-.548l-3.407-1.972ZM16 21c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5Z"
3604 />
3605 </svg>
3606 </span>
3607 </button>
3608
3609 <button
3610 class="pf-v6-c-menu-toggle pf-m-settings pf-m-plain pf-m-disabled"
3611 type="button"
3612 aria-expanded="false"
3613 disabled
3614 aria-label="Settings"
3615 >
3616 <span class="pf-v6-c-menu-toggle__icon">
3617 <svg
3618 class="pf-v6-svg"
3619 fill="currentColor"
3620 viewBox="0 0 32 32"
3621 aria-hidden="true"
3622 role="img"
3623 width="1em"
3624 height="1em"
3625 >
3626 <path
3627 d="M26.463 16.845a9.635 9.635 0 0 0-.002-1.688l3.41-1.974a.5.5 0 0 0 .235-.548 14.47 14.47 0 0 0-4.142-7.167.5.5 0 0 0-.594-.07l-3.404 1.97c-.469-.326-.96-.61-1.466-.85V2.58a.5.5 0 0 0-.356-.48 14.662 14.662 0 0 0-8.288 0 .5.5 0 0 0-.356.48v3.944c-.513.245-1.003.528-1.462.846L6.63 5.397a.5.5 0 0 0-.594.07 14.47 14.47 0 0 0-4.142 7.168.5.5 0 0 0 .236.548l3.407 1.972a9.635 9.635 0 0 0 .002 1.688l-3.41 1.974a.5.5 0 0 0-.235.548 14.47 14.47 0 0 0 4.142 7.167c.16.154.405.18.594.07l3.404-1.97c.469.326.96.61 1.466.85v3.938a.5.5 0 0 0 .356.48c1.333.398 2.728.6 4.144.6s2.81-.202 4.144-.6a.5.5 0 0 0 .356-.48v-3.944a10.449 10.449 0 0 0 1.462-.846l3.408 1.973a.5.5 0 0 0 .594-.07 14.47 14.47 0 0 0 4.142-7.168.5.5 0 0 0-.236-.548l-3.407-1.972ZM16 21c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5Z"
3628 />
3629 </svg>
3630 </span>
3631 </button>
3632
3633 ```
3634
3635 ## Documentation
3636
3637 ### Accessibility
3638
3639 | Class | Applied to | Outcome |
3640 | -- | -- | -- |
3641 | `aria-expanded="true"` | `.pf-v6-c-menu-toggle`, `.pf-v6-c-menu-toggle__button` | Indicates that the menu toggle component is in the expanded state. |
3642 | `aria-expanded="false"` | `.pf-v6-c-menu-toggle`, `.pf-v6-c-menu-toggle__button` | Indicates that the menu toggle component is in the collapsed state. |
3643 | `aria-label="Descriptive text"` | `.pf-v6-c-menu-toggle`, `.pf-v6-c-menu-toggle.pf-m-plain` | Gives the menu toggle component an accessible label. Used whenever there is no text visible in the menu toggle. Often, plain modifiers are used when the menu toggle only contains an icon. |
3644 | `disabled` | `.pf-v6-c-menu-toggle`, `.pf-v6-c-menu-toggle__button` | Indicates that the menu toggle component is disabled. |
3645
3646 ### Usage
3647
3648 | Class | Applied | Outcome |
3649 | -- | -- | -- |
3650 | `.pf-v6-c-menu-toggle` | `<button>` | Initiates the menu toggle component. |
3651 | `.pf-v6-c-menu-toggle__icon` | `<span>` | Defines the menu toggle component icon/image. |
3652 | `.pf-v6-c-menu-toggle__text` | `<span>` | Defines the menu toggle component text. |
3653 | `.pf-v6-c-menu-toggle__count` | `<span>` | Defines the menu toggle component count. |
3654 | `.pf-v6-c-menu-toggle__controls` | `<span>` | Defines the menu toggle component controls. |
3655 | `.pf-v6-c-menu-toggle__toggle-icon` | `<span>` | Defines the menu toggle component toggle/arrow icon. |
3656 | `.pf-v6-c-menu-toggle__button` | `<button>` | Initiates the menu toggle button. |
3657 | `.pf-m-split-button` | `.pf-v6-c-menu-toggle` | Modifies the menu toggle component for the split button variation. |
3658 | `.pf-m-text` | `.pf-v6-c-menu-toggle__button` | Modifies the menu toggle component split button variation with text. |
3659 | `.pf-m-disabled` | `.pf-v6-c-menu-toggle` | Modifies the menu toggle component for the disabled variation. |
3660 | `.pf-m-primary` | `.pf-v6-c-menu-toggle` | Modifies the menu toggle component for the primary variation. |
3661 | `.pf-m-secondary` | `.pf-v6-c-menu-toggle` | Modifies the menu toggle component for the secondary variation. |
3662 | `.pf-m-text` | `.pf-v6-c-menu-toggle` | Modifies the menu toggle component for the text variation. |
3663 | `.pf-m-plain` | `.pf-v6-c-menu-toggle` | Modifies the menu toggle component for the plain variation. |
3664 | `.pf-m-circle` | `.pf-v6-c-menu-toggle` | Modifies the menu toggle component to be circular in shape. This is intended to be applied only to a plain menu toggle without any text. |
3665 | `.pf-m-expanded` | `.pf-v6-c-menu-toggle` | Modifies the menu toggle component for the expanded state. |
3666 | `.pf-m-full-height` | `.pf-v6-c-menu-toggle` | Modifies the menu toggle component to full height of parent. |
3667 | `.pf-m-full-width` | `.pf-v6-c-menu-toggle` | Modifies the menu toggle component to full width of parent. |
3668 | `.pf-m-form` | `.pf-v6-c-menu-toggle` | Modifies the menu toggle for use in forms with form element border radius. |
3669 | `.pf-m-success` | `.pf-v6-c-menu-toggle` | Modifies the menu toggle component for the success state. |
3670 | `.pf-m-warning` | `.pf-v6-c-menu-toggle` | Modifies the menu toggle component for the warning state. |
3671 | `.pf-m-danger` | `.pf-v6-c-menu-toggle` | Modifies the menu toggle component for the danger state. |
3672 | `.pf-m-placeholder` | `.pf-v6-c-menu-toggle` | Modifies the menu toggle text for placeholder styles. |
3673 | `.pf-m-text-expanded` | `.pf-v6-c-menu-toggle` | Modifies a dock menu toggle to show its text. |