Debian Codegraph @

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

raw
1 ---
2 id: Tree view
3 section: components
4 cssPrefix: pf-v6-c-tree-view
5 ---## Examples
6
7 ### Single selectable
8
9 ```html
10 <div class="pf-v6-c-tree-view">
11 <ul
12 class="pf-v6-c-tree-view__list"
13 role="tree"
14 aria-label="Tree View single selectable example"
15 >
16 <li
17 class="pf-v6-c-tree-view__list-item pf-m-expanded"
18 role="treeitem"
19 aria-selected="false"
20 aria-expanded="true"
21 tabindex="0"
22 >
23 <div class="pf-v6-c-tree-view__content">
24 <button class="pf-v6-c-tree-view__node">
25 <span class="pf-v6-c-tree-view__node-container">
26 <span class="pf-v6-c-tree-view__node-toggle">
27 <span class="pf-v6-c-tree-view__node-toggle-icon">
28 <svg
29 class="pf-v6-svg"
30 fill="currentColor"
31 viewBox="0 0 20 20"
32 aria-hidden="true"
33 role="img"
34 width="1em"
35 height="1em"
36 >
37 <path
38 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
39 />
40 </svg>
41 </span>
42 </span>
43 <span class="pf-v6-c-tree-view__node-text">Application launcher</span>
44 </span>
45 </button>
46 </div>
47 <ul class="pf-v6-c-tree-view__list" role="group">
48 <li
49 class="pf-v6-c-tree-view__list-item pf-m-expanded"
50 role="treeitem"
51 aria-selected="false"
52 aria-expanded="true"
53 tabindex="0"
54 >
55 <div class="pf-v6-c-tree-view__content">
56 <button class="pf-v6-c-tree-view__node">
57 <span class="pf-v6-c-tree-view__node-container">
58 <span class="pf-v6-c-tree-view__node-toggle">
59 <span class="pf-v6-c-tree-view__node-toggle-icon">
60 <svg
61 class="pf-v6-svg"
62 fill="currentColor"
63 viewBox="0 0 20 20"
64 aria-hidden="true"
65 role="img"
66 width="1em"
67 height="1em"
68 >
69 <path
70 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
71 />
72 </svg>
73 </span>
74 </span>
75 <span class="pf-v6-c-tree-view__node-text">Application 1</span>
76 </span>
77 </button>
78 </div>
79 <ul class="pf-v6-c-tree-view__list" role="group">
80 <li
81 class="pf-v6-c-tree-view__list-item"
82 role="treeitem"
83 aria-selected="false"
84 tabindex="-1"
85 >
86 <div class="pf-v6-c-tree-view__content">
87 <button class="pf-v6-c-tree-view__node">
88 <span class="pf-v6-c-tree-view__node-container">
89 <span class="pf-v6-c-tree-view__node-text">Settings</span>
90 </span>
91 </button>
92 </div>
93 </li>
94 <li
95 class="pf-v6-c-tree-view__list-item"
96 role="treeitem"
97 aria-selected="true"
98 tabindex="-1"
99 >
100 <div class="pf-v6-c-tree-view__content">
101 <button class="pf-v6-c-tree-view__node pf-m-current">
102 <span class="pf-v6-c-tree-view__node-container">
103 <span class="pf-v6-c-tree-view__node-text">Current</span>
104 </span>
105 </button>
106 </div>
107 </li>
108 <li
109 class="pf-v6-c-tree-view__list-item"
110 role="treeitem"
111 aria-selected="false"
112 aria-expanded="false"
113 tabindex="0"
114 >
115 <div class="pf-v6-c-tree-view__content">
116 <button class="pf-v6-c-tree-view__node">
117 <span class="pf-v6-c-tree-view__node-container">
118 <span class="pf-v6-c-tree-view__node-toggle">
119 <span class="pf-v6-c-tree-view__node-toggle-icon">
120 <svg
121 class="pf-v6-svg"
122 fill="currentColor"
123 viewBox="0 0 20 20"
124 aria-hidden="true"
125 role="img"
126 width="1em"
127 height="1em"
128 >
129 <path
130 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
131 />
132 </svg>
133 </span>
134 </span>
135 <span class="pf-v6-c-tree-view__node-text">Loader</span>
136 </span>
137 </button>
138 </div>
139 </li>
140 </ul>
141 </li>
142 <li
143 class="pf-v6-c-tree-view__list-item pf-m-expanded"
144 role="treeitem"
145 aria-selected="false"
146 aria-expanded="true"
147 tabindex="0"
148 >
149 <div class="pf-v6-c-tree-view__content">
150 <div class="pf-v6-c-tree-view__node pf-m-disabled" tabindex="0">
151 <span class="pf-v6-c-tree-view__node-container">
152 <span class="pf-v6-c-tree-view__node-toggle pf-m-disabled">
153 <span class="pf-v6-c-tree-view__node-toggle-icon">
154 <svg
155 class="pf-v6-svg"
156 fill="currentColor"
157 viewBox="0 0 20 20"
158 aria-hidden="true"
159 role="img"
160 width="1em"
161 height="1em"
162 >
163 <path
164 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
165 />
166 </svg>
167 </span>
168 </span>
169 <span
170 class="pf-v6-c-tree-view__node-text"
171 >Application 2 (disabled item and toggle)</span>
172 </span>
173 </div>
174 </div>
175 <ul class="pf-v6-c-tree-view__list" role="group">
176 <li
177 class="pf-v6-c-tree-view__list-item"
178 role="treeitem"
179 aria-selected="false"
180 tabindex="-1"
181 >
182 <div class="pf-v6-c-tree-view__content">
183 <div class="pf-v6-c-tree-view__node" tabindex="0">
184 <span class="pf-v6-c-tree-view__node-container">
185 <span class="pf-v6-c-tree-view__node-text">Settings</span>
186 </span>
187 </div>
188 </div>
189 </li>
190 <li
191 class="pf-v6-c-tree-view__list-item"
192 role="treeitem"
193 aria-selected="false"
194 aria-expanded="false"
195 tabindex="0"
196 >
197 <div class="pf-v6-c-tree-view__content">
198 <button class="pf-v6-c-tree-view__node">
199 <span class="pf-v6-c-tree-view__node-container">
200 <span class="pf-v6-c-tree-view__node-toggle">
201 <span class="pf-v6-c-tree-view__node-toggle-icon">
202 <svg
203 class="pf-v6-svg"
204 fill="currentColor"
205 viewBox="0 0 20 20"
206 aria-hidden="true"
207 role="img"
208 width="1em"
209 height="1em"
210 >
211 <path
212 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
213 />
214 </svg>
215 </span>
216 </span>
217 <span class="pf-v6-c-tree-view__node-text">Settings</span>
218 </span>
219 </button>
220 </div>
221 </li>
222 <li
223 class="pf-v6-c-tree-view__list-item pf-m-expanded"
224 role="treeitem"
225 aria-selected="false"
226 aria-expanded="true"
227 tabindex="0"
228 >
229 <div class="pf-v6-c-tree-view__content">
230 <button class="pf-v6-c-tree-view__node">
231 <span class="pf-v6-c-tree-view__node-container">
232 <span class="pf-v6-c-tree-view__node-toggle">
233 <span class="pf-v6-c-tree-view__node-toggle-icon">
234 <svg
235 class="pf-v6-svg"
236 fill="currentColor"
237 viewBox="0 0 20 20"
238 aria-hidden="true"
239 role="img"
240 width="1em"
241 height="1em"
242 >
243 <path
244 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
245 />
246 </svg>
247 </span>
248 </span>
249 <span class="pf-v6-c-tree-view__node-text">Loader</span>
250 </span>
251 </button>
252 </div>
253 <ul class="pf-v6-c-tree-view__list" role="group">
254 <li
255 class="pf-v6-c-tree-view__list-item"
256 role="treeitem"
257 aria-selected="false"
258 aria-expanded="false"
259 tabindex="0"
260 >
261 <div class="pf-v6-c-tree-view__content">
262 <button class="pf-v6-c-tree-view__node">
263 <span class="pf-v6-c-tree-view__node-container">
264 <span class="pf-v6-c-tree-view__node-toggle">
265 <span class="pf-v6-c-tree-view__node-toggle-icon">
266 <svg
267 class="pf-v6-svg"
268 fill="currentColor"
269 viewBox="0 0 20 20"
270 aria-hidden="true"
271 role="img"
272 width="1em"
273 height="1em"
274 >
275 <path
276 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
277 />
278 </svg>
279 </span>
280 </span>
281 <span class="pf-v6-c-tree-view__node-text">Loader app 1</span>
282 </span>
283 </button>
284 </div>
285 </li>
286 <li
287 class="pf-v6-c-tree-view__list-item"
288 role="treeitem"
289 aria-selected="false"
290 tabindex="-1"
291 >
292 <div class="pf-v6-c-tree-view__content">
293 <button class="pf-v6-c-tree-view__node">
294 <span class="pf-v6-c-tree-view__node-container">
295 <span class="pf-v6-c-tree-view__node-text">Loader app 2</span>
296 </span>
297 </button>
298 </div>
299 </li>
300 <li
301 class="pf-v6-c-tree-view__list-item"
302 role="treeitem"
303 aria-selected="false"
304 tabindex="-1"
305 >
306 <div class="pf-v6-c-tree-view__content">
307 <button class="pf-v6-c-tree-view__node">
308 <span class="pf-v6-c-tree-view__node-container">
309 <span class="pf-v6-c-tree-view__node-text">Loader app 3</span>
310 </span>
311 </button>
312 </div>
313 </li>
314 </ul>
315 </li>
316 </ul>
317 </li>
318 </ul>
319 </li>
320 <li
321 class="pf-v6-c-tree-view__list-item"
322 role="treeitem"
323 aria-selected="false"
324 aria-expanded="false"
325 tabindex="0"
326 >
327 <div class="pf-v6-c-tree-view__content">
328 <button class="pf-v6-c-tree-view__node">
329 <span class="pf-v6-c-tree-view__node-container">
330 <span class="pf-v6-c-tree-view__node-toggle">
331 <span class="pf-v6-c-tree-view__node-toggle-icon">
332 <svg
333 class="pf-v6-svg"
334 fill="currentColor"
335 viewBox="0 0 20 20"
336 aria-hidden="true"
337 role="img"
338 width="1em"
339 height="1em"
340 >
341 <path
342 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
343 />
344 </svg>
345 </span>
346 </span>
347 <span class="pf-v6-c-tree-view__node-text">Cost management</span>
348 </span>
349 </button>
350 </div>
351 </li>
352 <li
353 class="pf-v6-c-tree-view__list-item"
354 role="treeitem"
355 aria-selected="false"
356 aria-expanded="false"
357 tabindex="0"
358 >
359 <div class="pf-v6-c-tree-view__content">
360 <button class="pf-v6-c-tree-view__node">
361 <span class="pf-v6-c-tree-view__node-container">
362 <span class="pf-v6-c-tree-view__node-toggle">
363 <span class="pf-v6-c-tree-view__node-toggle-icon">
364 <svg
365 class="pf-v6-svg"
366 fill="currentColor"
367 viewBox="0 0 20 20"
368 aria-hidden="true"
369 role="img"
370 width="1em"
371 height="1em"
372 >
373 <path
374 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
375 />
376 </svg>
377 </span>
378 </span>
379 <span class="pf-v6-c-tree-view__node-text">Sources</span>
380 </span>
381 </button>
382 </div>
383 </li>
384 <li
385 class="pf-v6-c-tree-view__list-item"
386 role="treeitem"
387 aria-selected="false"
388 aria-expanded="false"
389 tabindex="0"
390 >
391 <div class="pf-v6-c-tree-view__content">
392 <button class="pf-v6-c-tree-view__node">
393 <span class="pf-v6-c-tree-view__node-container">
394 <span class="pf-v6-c-tree-view__node-toggle">
395 <span class="pf-v6-c-tree-view__node-toggle-icon">
396 <svg
397 class="pf-v6-svg"
398 fill="currentColor"
399 viewBox="0 0 20 20"
400 aria-hidden="true"
401 role="img"
402 width="1em"
403 height="1em"
404 >
405 <path
406 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
407 />
408 </svg>
409 </span>
410 </span>
411 <span
412 class="pf-v6-c-tree-view__node-text"
413 >This is a really really really long folder name that overflows from the width of the container.</span>
414 </span>
415 </button>
416 </div>
417 </li>
418 </ul>
419 </div>
420
421 ```
422
423 ### Multiselectable
424
425 A tree view can be setup to allow multiple nodes to be selected. When a tree view is intended to allow multiple selection, `aria-multiselectable="true"` must be passed to the root `ul[role="tree"]` element.
426
427 ```html
428 <div class="pf-v6-c-tree-view">
429 <ul
430 class="pf-v6-c-tree-view__list"
431 role="tree"
432 aria-multiselectable="true"
433 aria-label="Tree View multiselectable example"
434 >
435 <li
436 class="pf-v6-c-tree-view__list-item pf-m-expanded"
437 role="treeitem"
438 aria-selected="false"
439 aria-expanded="true"
440 tabindex="0"
441 >
442 <div class="pf-v6-c-tree-view__content">
443 <button class="pf-v6-c-tree-view__node">
444 <span class="pf-v6-c-tree-view__node-container">
445 <span class="pf-v6-c-tree-view__node-toggle">
446 <span class="pf-v6-c-tree-view__node-toggle-icon">
447 <svg
448 class="pf-v6-svg"
449 fill="currentColor"
450 viewBox="0 0 20 20"
451 aria-hidden="true"
452 role="img"
453 width="1em"
454 height="1em"
455 >
456 <path
457 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
458 />
459 </svg>
460 </span>
461 </span>
462 <span class="pf-v6-c-tree-view__node-text">Application launcher</span>
463 </span>
464 </button>
465 </div>
466 <ul class="pf-v6-c-tree-view__list" role="group">
467 <li
468 class="pf-v6-c-tree-view__list-item pf-m-expanded"
469 role="treeitem"
470 aria-selected="false"
471 aria-expanded="true"
472 tabindex="0"
473 >
474 <div class="pf-v6-c-tree-view__content">
475 <button class="pf-v6-c-tree-view__node">
476 <span class="pf-v6-c-tree-view__node-container">
477 <span class="pf-v6-c-tree-view__node-toggle">
478 <span class="pf-v6-c-tree-view__node-toggle-icon">
479 <svg
480 class="pf-v6-svg"
481 fill="currentColor"
482 viewBox="0 0 20 20"
483 aria-hidden="true"
484 role="img"
485 width="1em"
486 height="1em"
487 >
488 <path
489 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
490 />
491 </svg>
492 </span>
493 </span>
494 <span class="pf-v6-c-tree-view__node-text">Application 1</span>
495 </span>
496 </button>
497 </div>
498 <ul class="pf-v6-c-tree-view__list" role="group">
499 <li
500 class="pf-v6-c-tree-view__list-item"
501 role="treeitem"
502 aria-selected="false"
503 tabindex="-1"
504 >
505 <div class="pf-v6-c-tree-view__content">
506 <button class="pf-v6-c-tree-view__node">
507 <span class="pf-v6-c-tree-view__node-container">
508 <span class="pf-v6-c-tree-view__node-text">Settings</span>
509 </span>
510 </button>
511 </div>
512 </li>
513 <li
514 class="pf-v6-c-tree-view__list-item"
515 role="treeitem"
516 aria-selected="true"
517 tabindex="-1"
518 >
519 <div class="pf-v6-c-tree-view__content">
520 <button class="pf-v6-c-tree-view__node pf-m-current">
521 <span class="pf-v6-c-tree-view__node-container">
522 <span class="pf-v6-c-tree-view__node-text">Current</span>
523 </span>
524 </button>
525 </div>
526 </li>
527 <li
528 class="pf-v6-c-tree-view__list-item"
529 role="treeitem"
530 aria-selected="false"
531 aria-expanded="false"
532 tabindex="0"
533 >
534 <div class="pf-v6-c-tree-view__content">
535 <button class="pf-v6-c-tree-view__node">
536 <span class="pf-v6-c-tree-view__node-container">
537 <span class="pf-v6-c-tree-view__node-toggle">
538 <span class="pf-v6-c-tree-view__node-toggle-icon">
539 <svg
540 class="pf-v6-svg"
541 fill="currentColor"
542 viewBox="0 0 20 20"
543 aria-hidden="true"
544 role="img"
545 width="1em"
546 height="1em"
547 >
548 <path
549 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
550 />
551 </svg>
552 </span>
553 </span>
554 <span class="pf-v6-c-tree-view__node-text">Loader</span>
555 </span>
556 </button>
557 </div>
558 </li>
559 </ul>
560 </li>
561 <li
562 class="pf-v6-c-tree-view__list-item pf-m-expanded"
563 role="treeitem"
564 aria-selected="false"
565 aria-expanded="true"
566 tabindex="0"
567 >
568 <div class="pf-v6-c-tree-view__content">
569 <button class="pf-v6-c-tree-view__node">
570 <span class="pf-v6-c-tree-view__node-container">
571 <span class="pf-v6-c-tree-view__node-toggle">
572 <span class="pf-v6-c-tree-view__node-toggle-icon">
573 <svg
574 class="pf-v6-svg"
575 fill="currentColor"
576 viewBox="0 0 20 20"
577 aria-hidden="true"
578 role="img"
579 width="1em"
580 height="1em"
581 >
582 <path
583 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
584 />
585 </svg>
586 </span>
587 </span>
588 <span class="pf-v6-c-tree-view__node-text">Application 2</span>
589 </span>
590 </button>
591 </div>
592 <ul class="pf-v6-c-tree-view__list" role="group">
593 <li
594 class="pf-v6-c-tree-view__list-item"
595 role="treeitem"
596 aria-selected="false"
597 tabindex="-1"
598 >
599 <div class="pf-v6-c-tree-view__content">
600 <button class="pf-v6-c-tree-view__node">
601 <span class="pf-v6-c-tree-view__node-container">
602 <span class="pf-v6-c-tree-view__node-text">Settings</span>
603 </span>
604 </button>
605 </div>
606 </li>
607 <li
608 class="pf-v6-c-tree-view__list-item"
609 role="treeitem"
610 aria-selected="false"
611 aria-expanded="false"
612 tabindex="0"
613 >
614 <div class="pf-v6-c-tree-view__content">
615 <button class="pf-v6-c-tree-view__node">
616 <span class="pf-v6-c-tree-view__node-container">
617 <span class="pf-v6-c-tree-view__node-toggle">
618 <span class="pf-v6-c-tree-view__node-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="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
630 />
631 </svg>
632 </span>
633 </span>
634 <span class="pf-v6-c-tree-view__node-text">Settings</span>
635 </span>
636 </button>
637 </div>
638 </li>
639 <li
640 class="pf-v6-c-tree-view__list-item pf-m-expanded"
641 role="treeitem"
642 aria-selected="false"
643 aria-expanded="true"
644 tabindex="0"
645 >
646 <div class="pf-v6-c-tree-view__content">
647 <button class="pf-v6-c-tree-view__node">
648 <span class="pf-v6-c-tree-view__node-container">
649 <span class="pf-v6-c-tree-view__node-toggle">
650 <span class="pf-v6-c-tree-view__node-toggle-icon">
651 <svg
652 class="pf-v6-svg"
653 fill="currentColor"
654 viewBox="0 0 20 20"
655 aria-hidden="true"
656 role="img"
657 width="1em"
658 height="1em"
659 >
660 <path
661 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
662 />
663 </svg>
664 </span>
665 </span>
666 <span class="pf-v6-c-tree-view__node-text">Loader</span>
667 </span>
668 </button>
669 </div>
670 <ul class="pf-v6-c-tree-view__list" role="group">
671 <li
672 class="pf-v6-c-tree-view__list-item"
673 role="treeitem"
674 aria-selected="false"
675 aria-expanded="false"
676 tabindex="0"
677 >
678 <div class="pf-v6-c-tree-view__content">
679 <button class="pf-v6-c-tree-view__node">
680 <span class="pf-v6-c-tree-view__node-container">
681 <span class="pf-v6-c-tree-view__node-toggle">
682 <span class="pf-v6-c-tree-view__node-toggle-icon">
683 <svg
684 class="pf-v6-svg"
685 fill="currentColor"
686 viewBox="0 0 20 20"
687 aria-hidden="true"
688 role="img"
689 width="1em"
690 height="1em"
691 >
692 <path
693 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
694 />
695 </svg>
696 </span>
697 </span>
698 <span class="pf-v6-c-tree-view__node-text">Loader app 1</span>
699 </span>
700 </button>
701 </div>
702 </li>
703 <li
704 class="pf-v6-c-tree-view__list-item"
705 role="treeitem"
706 aria-selected="true"
707 tabindex="-1"
708 >
709 <div class="pf-v6-c-tree-view__content">
710 <button class="pf-v6-c-tree-view__node pf-m-current">
711 <span class="pf-v6-c-tree-view__node-container">
712 <span class="pf-v6-c-tree-view__node-text">Loader app 2</span>
713 </span>
714 </button>
715 </div>
716 </li>
717 <li
718 class="pf-v6-c-tree-view__list-item"
719 role="treeitem"
720 aria-selected="false"
721 tabindex="-1"
722 >
723 <div class="pf-v6-c-tree-view__content">
724 <button class="pf-v6-c-tree-view__node">
725 <span class="pf-v6-c-tree-view__node-container">
726 <span class="pf-v6-c-tree-view__node-text">Loader app 3</span>
727 </span>
728 </button>
729 </div>
730 </li>
731 </ul>
732 </li>
733 </ul>
734 </li>
735 </ul>
736 </li>
737 <li
738 class="pf-v6-c-tree-view__list-item"
739 role="treeitem"
740 aria-selected="false"
741 aria-expanded="false"
742 tabindex="0"
743 >
744 <div class="pf-v6-c-tree-view__content">
745 <button class="pf-v6-c-tree-view__node">
746 <span class="pf-v6-c-tree-view__node-container">
747 <span class="pf-v6-c-tree-view__node-toggle">
748 <span class="pf-v6-c-tree-view__node-toggle-icon">
749 <svg
750 class="pf-v6-svg"
751 fill="currentColor"
752 viewBox="0 0 20 20"
753 aria-hidden="true"
754 role="img"
755 width="1em"
756 height="1em"
757 >
758 <path
759 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
760 />
761 </svg>
762 </span>
763 </span>
764 <span class="pf-v6-c-tree-view__node-text">Cost management</span>
765 </span>
766 </button>
767 </div>
768 </li>
769 <li
770 class="pf-v6-c-tree-view__list-item"
771 role="treeitem"
772 aria-selected="false"
773 aria-expanded="false"
774 tabindex="0"
775 >
776 <div class="pf-v6-c-tree-view__content">
777 <button class="pf-v6-c-tree-view__node">
778 <span class="pf-v6-c-tree-view__node-container">
779 <span class="pf-v6-c-tree-view__node-toggle">
780 <span class="pf-v6-c-tree-view__node-toggle-icon">
781 <svg
782 class="pf-v6-svg"
783 fill="currentColor"
784 viewBox="0 0 20 20"
785 aria-hidden="true"
786 role="img"
787 width="1em"
788 height="1em"
789 >
790 <path
791 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
792 />
793 </svg>
794 </span>
795 </span>
796 <span class="pf-v6-c-tree-view__node-text">Sources</span>
797 </span>
798 </button>
799 </div>
800 </li>
801 <li
802 class="pf-v6-c-tree-view__list-item"
803 role="treeitem"
804 aria-selected="false"
805 aria-expanded="false"
806 tabindex="0"
807 >
808 <div class="pf-v6-c-tree-view__content">
809 <button class="pf-v6-c-tree-view__node">
810 <span class="pf-v6-c-tree-view__node-container">
811 <span class="pf-v6-c-tree-view__node-toggle">
812 <span class="pf-v6-c-tree-view__node-toggle-icon">
813 <svg
814 class="pf-v6-svg"
815 fill="currentColor"
816 viewBox="0 0 20 20"
817 aria-hidden="true"
818 role="img"
819 width="1em"
820 height="1em"
821 >
822 <path
823 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
824 />
825 </svg>
826 </span>
827 </span>
828 <span
829 class="pf-v6-c-tree-view__node-text"
830 >This is a really really really long folder name that overflows from the width of the container.</span>
831 </span>
832 </button>
833 </div>
834 </li>
835 </ul>
836 </div>
837
838 ```
839
840 ### With search
841
842 A search input can be used to filter tree view items. It is recommended that a tree view with more than 7 nodes includes a search input.
843
844 ```html
845 <div class="pf-v6-c-tree-view">
846 <div class="pf-v6-c-tree-view__search">
847 <div class="pf-v6-c-text-input-group">
848 <div class="pf-v6-c-text-input-group__main pf-m-icon">
849 <span class="pf-v6-c-text-input-group__text">
850 <span class="pf-v6-c-text-input-group__icon">
851 <i class="fas fa-fw fa-search"></i>
852 </span>
853 <input
854 class="pf-v6-c-text-input-group__text-input"
855 type="text"
856 placeholder="Search"
857 value
858 aria-label="Search input"
859 />
860 </span>
861 </div>
862 </div>
863 </div>
864 <hr class="pf-v6-c-divider" />
865 <ul
866 class="pf-v6-c-tree-view__list"
867 role="tree"
868 aria-label="Tree View with search example"
869 >
870 <li
871 class="pf-v6-c-tree-view__list-item pf-m-expanded"
872 role="treeitem"
873 aria-selected="false"
874 aria-expanded="true"
875 tabindex="0"
876 >
877 <div class="pf-v6-c-tree-view__content">
878 <button class="pf-v6-c-tree-view__node">
879 <span class="pf-v6-c-tree-view__node-container">
880 <span class="pf-v6-c-tree-view__node-toggle">
881 <span class="pf-v6-c-tree-view__node-toggle-icon">
882 <svg
883 class="pf-v6-svg"
884 fill="currentColor"
885 viewBox="0 0 20 20"
886 aria-hidden="true"
887 role="img"
888 width="1em"
889 height="1em"
890 >
891 <path
892 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
893 />
894 </svg>
895 </span>
896 </span>
897 <span class="pf-v6-c-tree-view__node-text">Application launcher</span>
898 </span>
899 </button>
900 </div>
901 <ul class="pf-v6-c-tree-view__list" role="group">
902 <li
903 class="pf-v6-c-tree-view__list-item pf-m-expanded"
904 role="treeitem"
905 aria-selected="false"
906 aria-expanded="true"
907 tabindex="0"
908 >
909 <div class="pf-v6-c-tree-view__content">
910 <button class="pf-v6-c-tree-view__node">
911 <span class="pf-v6-c-tree-view__node-container">
912 <span class="pf-v6-c-tree-view__node-toggle">
913 <span class="pf-v6-c-tree-view__node-toggle-icon">
914 <svg
915 class="pf-v6-svg"
916 fill="currentColor"
917 viewBox="0 0 20 20"
918 aria-hidden="true"
919 role="img"
920 width="1em"
921 height="1em"
922 >
923 <path
924 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
925 />
926 </svg>
927 </span>
928 </span>
929 <span class="pf-v6-c-tree-view__node-text">Application 1</span>
930 </span>
931 </button>
932 </div>
933 <ul class="pf-v6-c-tree-view__list" role="group">
934 <li
935 class="pf-v6-c-tree-view__list-item"
936 role="treeitem"
937 aria-selected="false"
938 tabindex="-1"
939 >
940 <div class="pf-v6-c-tree-view__content">
941 <button class="pf-v6-c-tree-view__node">
942 <span class="pf-v6-c-tree-view__node-container">
943 <span class="pf-v6-c-tree-view__node-text">Settings</span>
944 </span>
945 </button>
946 </div>
947 </li>
948 <li
949 class="pf-v6-c-tree-view__list-item"
950 role="treeitem"
951 aria-selected="true"
952 tabindex="-1"
953 >
954 <div class="pf-v6-c-tree-view__content">
955 <button class="pf-v6-c-tree-view__node pf-m-current">
956 <span class="pf-v6-c-tree-view__node-container">
957 <span class="pf-v6-c-tree-view__node-text">Current</span>
958 </span>
959 </button>
960 </div>
961 </li>
962 </ul>
963 </li>
964 <li
965 class="pf-v6-c-tree-view__list-item pf-m-expanded"
966 role="treeitem"
967 aria-selected="false"
968 aria-expanded="true"
969 tabindex="0"
970 >
971 <div class="pf-v6-c-tree-view__content">
972 <button class="pf-v6-c-tree-view__node">
973 <span class="pf-v6-c-tree-view__node-container">
974 <span class="pf-v6-c-tree-view__node-toggle">
975 <span class="pf-v6-c-tree-view__node-toggle-icon">
976 <svg
977 class="pf-v6-svg"
978 fill="currentColor"
979 viewBox="0 0 20 20"
980 aria-hidden="true"
981 role="img"
982 width="1em"
983 height="1em"
984 >
985 <path
986 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
987 />
988 </svg>
989 </span>
990 </span>
991 <span class="pf-v6-c-tree-view__node-text">Application 2</span>
992 </span>
993 </button>
994 </div>
995 <ul class="pf-v6-c-tree-view__list" role="group">
996 <li
997 class="pf-v6-c-tree-view__list-item"
998 role="treeitem"
999 aria-selected="false"
1000 aria-expanded="false"
1001 tabindex="0"
1002 >
1003 <div class="pf-v6-c-tree-view__content">
1004 <button class="pf-v6-c-tree-view__node">
1005 <span class="pf-v6-c-tree-view__node-container">
1006 <span class="pf-v6-c-tree-view__node-toggle">
1007 <span class="pf-v6-c-tree-view__node-toggle-icon">
1008 <svg
1009 class="pf-v6-svg"
1010 fill="currentColor"
1011 viewBox="0 0 20 20"
1012 aria-hidden="true"
1013 role="img"
1014 width="1em"
1015 height="1em"
1016 >
1017 <path
1018 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
1019 />
1020 </svg>
1021 </span>
1022 </span>
1023 <span class="pf-v6-c-tree-view__node-text">Settings</span>
1024 </span>
1025 </button>
1026 </div>
1027 </li>
1028 <li
1029 class="pf-v6-c-tree-view__list-item pf-m-expanded"
1030 role="treeitem"
1031 aria-selected="false"
1032 aria-expanded="true"
1033 tabindex="0"
1034 >
1035 <div class="pf-v6-c-tree-view__content">
1036 <button class="pf-v6-c-tree-view__node">
1037 <span class="pf-v6-c-tree-view__node-container">
1038 <span class="pf-v6-c-tree-view__node-toggle">
1039 <span class="pf-v6-c-tree-view__node-toggle-icon">
1040 <svg
1041 class="pf-v6-svg"
1042 fill="currentColor"
1043 viewBox="0 0 20 20"
1044 aria-hidden="true"
1045 role="img"
1046 width="1em"
1047 height="1em"
1048 >
1049 <path
1050 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
1051 />
1052 </svg>
1053 </span>
1054 </span>
1055 <span class="pf-v6-c-tree-view__node-text">Loader</span>
1056 </span>
1057 </button>
1058 </div>
1059 <ul class="pf-v6-c-tree-view__list" role="group">
1060 <li
1061 class="pf-v6-c-tree-view__list-item"
1062 role="treeitem"
1063 aria-selected="false"
1064 aria-expanded="false"
1065 tabindex="0"
1066 >
1067 <div class="pf-v6-c-tree-view__content">
1068 <button class="pf-v6-c-tree-view__node">
1069 <span class="pf-v6-c-tree-view__node-container">
1070 <span class="pf-v6-c-tree-view__node-toggle">
1071 <span class="pf-v6-c-tree-view__node-toggle-icon">
1072 <svg
1073 class="pf-v6-svg"
1074 fill="currentColor"
1075 viewBox="0 0 20 20"
1076 aria-hidden="true"
1077 role="img"
1078 width="1em"
1079 height="1em"
1080 >
1081 <path
1082 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
1083 />
1084 </svg>
1085 </span>
1086 </span>
1087 <span class="pf-v6-c-tree-view__node-text">Loader app 1</span>
1088 </span>
1089 </button>
1090 </div>
1091 </li>
1092 <li
1093 class="pf-v6-c-tree-view__list-item"
1094 role="treeitem"
1095 aria-selected="false"
1096 tabindex="-1"
1097 >
1098 <div class="pf-v6-c-tree-view__content">
1099 <button class="pf-v6-c-tree-view__node">
1100 <span class="pf-v6-c-tree-view__node-container">
1101 <span class="pf-v6-c-tree-view__node-text">Loader app 2</span>
1102 </span>
1103 </button>
1104 </div>
1105 </li>
1106 <li
1107 class="pf-v6-c-tree-view__list-item"
1108 role="treeitem"
1109 aria-selected="false"
1110 tabindex="-1"
1111 >
1112 <div class="pf-v6-c-tree-view__content">
1113 <button class="pf-v6-c-tree-view__node">
1114 <span class="pf-v6-c-tree-view__node-container">
1115 <span class="pf-v6-c-tree-view__node-text">Loader app 3</span>
1116 </span>
1117 </button>
1118 </div>
1119 </li>
1120 </ul>
1121 </li>
1122 </ul>
1123 </li>
1124 </ul>
1125 </li>
1126 <li
1127 class="pf-v6-c-tree-view__list-item"
1128 role="treeitem"
1129 aria-selected="false"
1130 aria-expanded="false"
1131 tabindex="0"
1132 >
1133 <div class="pf-v6-c-tree-view__content">
1134 <button class="pf-v6-c-tree-view__node">
1135 <span class="pf-v6-c-tree-view__node-container">
1136 <span class="pf-v6-c-tree-view__node-toggle">
1137 <span class="pf-v6-c-tree-view__node-toggle-icon">
1138 <svg
1139 class="pf-v6-svg"
1140 fill="currentColor"
1141 viewBox="0 0 20 20"
1142 aria-hidden="true"
1143 role="img"
1144 width="1em"
1145 height="1em"
1146 >
1147 <path
1148 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
1149 />
1150 </svg>
1151 </span>
1152 </span>
1153 <span class="pf-v6-c-tree-view__node-text">Cost management</span>
1154 </span>
1155 </button>
1156 </div>
1157 </li>
1158 <li
1159 class="pf-v6-c-tree-view__list-item"
1160 role="treeitem"
1161 aria-selected="false"
1162 aria-expanded="false"
1163 tabindex="0"
1164 >
1165 <div class="pf-v6-c-tree-view__content">
1166 <button class="pf-v6-c-tree-view__node">
1167 <span class="pf-v6-c-tree-view__node-container">
1168 <span class="pf-v6-c-tree-view__node-toggle">
1169 <span class="pf-v6-c-tree-view__node-toggle-icon">
1170 <svg
1171 class="pf-v6-svg"
1172 fill="currentColor"
1173 viewBox="0 0 20 20"
1174 aria-hidden="true"
1175 role="img"
1176 width="1em"
1177 height="1em"
1178 >
1179 <path
1180 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
1181 />
1182 </svg>
1183 </span>
1184 </span>
1185 <span class="pf-v6-c-tree-view__node-text">Sources</span>
1186 </span>
1187 </button>
1188 </div>
1189 </li>
1190 <li
1191 class="pf-v6-c-tree-view__list-item"
1192 role="treeitem"
1193 aria-selected="false"
1194 aria-expanded="false"
1195 tabindex="0"
1196 >
1197 <div class="pf-v6-c-tree-view__content">
1198 <button class="pf-v6-c-tree-view__node">
1199 <span class="pf-v6-c-tree-view__node-container">
1200 <span class="pf-v6-c-tree-view__node-toggle">
1201 <span class="pf-v6-c-tree-view__node-toggle-icon">
1202 <svg
1203 class="pf-v6-svg"
1204 fill="currentColor"
1205 viewBox="0 0 20 20"
1206 aria-hidden="true"
1207 role="img"
1208 width="1em"
1209 height="1em"
1210 >
1211 <path
1212 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
1213 />
1214 </svg>
1215 </span>
1216 </span>
1217 <span
1218 class="pf-v6-c-tree-view__node-text"
1219 >This is a really really really long folder name that overflows from the width of the container.</span>
1220 </span>
1221 </button>
1222 </div>
1223 </li>
1224 </ul>
1225 </div>
1226
1227 ```
1228
1229 ### With checkboxes
1230
1231 ```html
1232 <div class="pf-v6-c-tree-view">
1233 <ul
1234 class="pf-v6-c-tree-view__list"
1235 role="tree"
1236 aria-label="Tree View with checkboxes example"
1237 >
1238 <li
1239 class="pf-v6-c-tree-view__list-item pf-m-expanded"
1240 role="treeitem"
1241 aria-checked="false"
1242 aria-expanded="true"
1243 tabindex="0"
1244 >
1245 <div class="pf-v6-c-tree-view__content">
1246 <label
1247 class="pf-v6-c-tree-view__node pf-m-selectable"
1248 tabindex="0"
1249 for="check-tree-view-checkboxes-1"
1250 >
1251 <span class="pf-v6-c-tree-view__node-container">
1252 <button
1253 class="pf-v6-c-tree-view__node-toggle"
1254 id="toggle-tree-view-checkboxes-1"
1255 aria-label="Toggle"
1256 aria-labelledby="toggle-tree-view-checkboxes-1 text-tree-view-checkboxes-1"
1257 >
1258 <span class="pf-v6-c-tree-view__node-toggle-icon">
1259 <svg
1260 class="pf-v6-svg"
1261 fill="currentColor"
1262 viewBox="0 0 20 20"
1263 aria-hidden="true"
1264 role="img"
1265 width="1em"
1266 height="1em"
1267 >
1268 <path
1269 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
1270 />
1271 </svg>
1272 </span>
1273 </button>
1274 <span class="pf-v6-c-tree-view__node-check">
1275 <div class="pf-v6-c-check pf-m-standalone">
1276 <input
1277 class="pf-v6-c-check__input"
1278 type="checkbox"
1279 id="check-tree-view-checkboxes-1"
1280 aria-label="Select"
1281 aria-labelledby="check-tree-view-checkboxes-1 text-tree-view-checkboxes-1"
1282 />
1283 </div>
1284 </span>
1285 <span
1286 class="pf-v6-c-tree-view__node-text"
1287 id="text-tree-view-checkboxes-1"
1288 >Application launcher</span>
1289 </span>
1290 </label>
1291 </div>
1292 <ul class="pf-v6-c-tree-view__list" role="group">
1293 <li
1294 class="pf-v6-c-tree-view__list-item pf-m-expanded"
1295 role="treeitem"
1296 aria-checked="true"
1297 aria-expanded="true"
1298 tabindex="0"
1299 >
1300 <div class="pf-v6-c-tree-view__content">
1301 <label
1302 class="pf-v6-c-tree-view__node pf-m-selectable"
1303 tabindex="0"
1304 for="check-tree-view-checkboxes-2"
1305 >
1306 <span class="pf-v6-c-tree-view__node-container">
1307 <button
1308 class="pf-v6-c-tree-view__node-toggle"
1309 id="toggle-tree-view-checkboxes-2"
1310 aria-label="Toggle"
1311 aria-labelledby="toggle-tree-view-checkboxes-2 text-tree-view-checkboxes-2"
1312 >
1313 <span class="pf-v6-c-tree-view__node-toggle-icon">
1314 <svg
1315 class="pf-v6-svg"
1316 fill="currentColor"
1317 viewBox="0 0 20 20"
1318 aria-hidden="true"
1319 role="img"
1320 width="1em"
1321 height="1em"
1322 >
1323 <path
1324 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
1325 />
1326 </svg>
1327 </span>
1328 </button>
1329 <span class="pf-v6-c-tree-view__node-check">
1330 <div class="pf-v6-c-check pf-m-standalone">
1331 <input
1332 class="pf-v6-c-check__input"
1333 type="checkbox"
1334 checked
1335 id="check-tree-view-checkboxes-2"
1336 aria-label="Select"
1337 aria-labelledby="check-tree-view-checkboxes-2 text-tree-view-checkboxes-2"
1338 />
1339 </div>
1340 </span>
1341 <span
1342 class="pf-v6-c-tree-view__node-text"
1343 id="text-tree-view-checkboxes-2"
1344 >Application 1</span>
1345 </span>
1346 </label>
1347 </div>
1348 <ul class="pf-v6-c-tree-view__list" role="group">
1349 <li
1350 class="pf-v6-c-tree-view__list-item"
1351 role="treeitem"
1352 aria-checked="true"
1353 tabindex="-1"
1354 >
1355 <div class="pf-v6-c-tree-view__content">
1356 <label
1357 class="pf-v6-c-tree-view__node"
1358 tabindex="0"
1359 for="check-tree-view-checkboxes-3"
1360 >
1361 <span class="pf-v6-c-tree-view__node-container">
1362 <span class="pf-v6-c-tree-view__node-check">
1363 <div class="pf-v6-c-check pf-m-standalone">
1364 <input
1365 class="pf-v6-c-check__input"
1366 type="checkbox"
1367 checked
1368 id="check-tree-view-checkboxes-3"
1369 aria-label="Select"
1370 aria-labelledby="check-tree-view-checkboxes-3 text-tree-view-checkboxes-3"
1371 />
1372 </div>
1373 </span>
1374 <span
1375 class="pf-v6-c-tree-view__node-text"
1376 id="text-tree-view-checkboxes-3"
1377 >Settings</span>
1378 </span>
1379 </label>
1380 </div>
1381 </li>
1382 <li
1383 class="pf-v6-c-tree-view__list-item"
1384 role="treeitem"
1385 aria-checked="true"
1386 tabindex="-1"
1387 >
1388 <div class="pf-v6-c-tree-view__content">
1389 <label
1390 class="pf-v6-c-tree-view__node"
1391 tabindex="0"
1392 for="check-tree-view-checkboxes-4"
1393 >
1394 <span class="pf-v6-c-tree-view__node-container">
1395 <span class="pf-v6-c-tree-view__node-check">
1396 <div class="pf-v6-c-check pf-m-standalone">
1397 <input
1398 class="pf-v6-c-check__input"
1399 type="checkbox"
1400 checked
1401 id="check-tree-view-checkboxes-4"
1402 aria-label="Select"
1403 aria-labelledby="check-tree-view-checkboxes-4 text-tree-view-checkboxes-4"
1404 />
1405 </div>
1406 </span>
1407 <span
1408 class="pf-v6-c-tree-view__node-text"
1409 id="text-tree-view-checkboxes-4"
1410 >Loader</span>
1411 </span>
1412 </label>
1413 </div>
1414 </li>
1415 <li
1416 class="pf-v6-c-tree-view__list-item"
1417 role="treeitem"
1418 aria-checked="true"
1419 aria-expanded="false"
1420 tabindex="0"
1421 >
1422 <div class="pf-v6-c-tree-view__content">
1423 <label
1424 class="pf-v6-c-tree-view__node pf-m-selectable"
1425 tabindex="0"
1426 for="check-tree-view-checkboxes-5"
1427 >
1428 <span class="pf-v6-c-tree-view__node-container">
1429 <button
1430 class="pf-v6-c-tree-view__node-toggle"
1431 id="toggle-tree-view-checkboxes-5"
1432 aria-label="Toggle"
1433 aria-labelledby="toggle-tree-view-checkboxes-5 text-tree-view-checkboxes-5"
1434 >
1435 <span class="pf-v6-c-tree-view__node-toggle-icon">
1436 <svg
1437 class="pf-v6-svg"
1438 fill="currentColor"
1439 viewBox="0 0 20 20"
1440 aria-hidden="true"
1441 role="img"
1442 width="1em"
1443 height="1em"
1444 >
1445 <path
1446 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
1447 />
1448 </svg>
1449 </span>
1450 </button>
1451 <span class="pf-v6-c-tree-view__node-check">
1452 <div class="pf-v6-c-check pf-m-standalone">
1453 <input
1454 class="pf-v6-c-check__input"
1455 type="checkbox"
1456 checked
1457 id="check-tree-view-checkboxes-5"
1458 aria-label="Select"
1459 aria-labelledby="check-tree-view-checkboxes-5 text-tree-view-checkboxes-5"
1460 />
1461 </div>
1462 </span>
1463 <span
1464 class="pf-v6-c-tree-view__node-text"
1465 id="text-tree-view-checkboxes-5"
1466 >Loader</span>
1467 </span>
1468 </label>
1469 </div>
1470 </li>
1471 </ul>
1472 </li>
1473 <li
1474 class="pf-v6-c-tree-view__list-item pf-m-expanded"
1475 role="treeitem"
1476 aria-checked="false"
1477 aria-expanded="true"
1478 tabindex="0"
1479 >
1480 <div class="pf-v6-c-tree-view__content">
1481 <label
1482 class="pf-v6-c-tree-view__node pf-m-selectable"
1483 tabindex="0"
1484 for="check-tree-view-checkboxes-6"
1485 >
1486 <span class="pf-v6-c-tree-view__node-container">
1487 <button
1488 class="pf-v6-c-tree-view__node-toggle"
1489 id="toggle-tree-view-checkboxes-6"
1490 aria-label="Toggle"
1491 aria-labelledby="toggle-tree-view-checkboxes-6 text-tree-view-checkboxes-6"
1492 >
1493 <span class="pf-v6-c-tree-view__node-toggle-icon">
1494 <svg
1495 class="pf-v6-svg"
1496 fill="currentColor"
1497 viewBox="0 0 20 20"
1498 aria-hidden="true"
1499 role="img"
1500 width="1em"
1501 height="1em"
1502 >
1503 <path
1504 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
1505 />
1506 </svg>
1507 </span>
1508 </button>
1509 <span class="pf-v6-c-tree-view__node-check">
1510 <div class="pf-v6-c-check pf-m-standalone">
1511 <input
1512 class="pf-v6-c-check__input"
1513 type="checkbox"
1514 id="check-tree-view-checkboxes-6"
1515 aria-label="Select"
1516 aria-labelledby="check-tree-view-checkboxes-6 text-tree-view-checkboxes-6"
1517 />
1518 </div>
1519 </span>
1520 <span
1521 class="pf-v6-c-tree-view__node-text"
1522 id="text-tree-view-checkboxes-6"
1523 >Application 2</span>
1524 </span>
1525 </label>
1526 </div>
1527 <ul class="pf-v6-c-tree-view__list" role="group">
1528 <li
1529 class="pf-v6-c-tree-view__list-item"
1530 role="treeitem"
1531 aria-checked="false"
1532 aria-expanded="false"
1533 tabindex="0"
1534 >
1535 <div class="pf-v6-c-tree-view__content">
1536 <label
1537 class="pf-v6-c-tree-view__node pf-m-selectable"
1538 tabindex="0"
1539 for="check-tree-view-checkboxes-7"
1540 >
1541 <span class="pf-v6-c-tree-view__node-container">
1542 <button
1543 class="pf-v6-c-tree-view__node-toggle"
1544 id="toggle-tree-view-checkboxes-7"
1545 aria-label="Toggle"
1546 aria-labelledby="toggle-tree-view-checkboxes-7 text-tree-view-checkboxes-7"
1547 >
1548 <span class="pf-v6-c-tree-view__node-toggle-icon">
1549 <svg
1550 class="pf-v6-svg"
1551 fill="currentColor"
1552 viewBox="0 0 20 20"
1553 aria-hidden="true"
1554 role="img"
1555 width="1em"
1556 height="1em"
1557 >
1558 <path
1559 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
1560 />
1561 </svg>
1562 </span>
1563 </button>
1564 <span class="pf-v6-c-tree-view__node-check">
1565 <div class="pf-v6-c-check pf-m-standalone">
1566 <input
1567 class="pf-v6-c-check__input"
1568 type="checkbox"
1569 id="check-tree-view-checkboxes-7"
1570 aria-label="Select"
1571 aria-labelledby="check-tree-view-checkboxes-7 text-tree-view-checkboxes-7"
1572 />
1573 </div>
1574 </span>
1575 <span
1576 class="pf-v6-c-tree-view__node-text"
1577 id="text-tree-view-checkboxes-7"
1578 >Settings</span>
1579 </span>
1580 </label>
1581 </div>
1582 </li>
1583 <li
1584 class="pf-v6-c-tree-view__list-item"
1585 role="treeitem"
1586 aria-checked="false"
1587 tabindex="-1"
1588 >
1589 <div class="pf-v6-c-tree-view__content">
1590 <label
1591 class="pf-v6-c-tree-view__node"
1592 tabindex="0"
1593 for="check-tree-view-checkboxes-8"
1594 >
1595 <span class="pf-v6-c-tree-view__node-container">
1596 <span class="pf-v6-c-tree-view__node-check">
1597 <div class="pf-v6-c-check pf-m-standalone">
1598 <input
1599 class="pf-v6-c-check__input"
1600 type="checkbox"
1601 id="check-tree-view-checkboxes-8"
1602 aria-label="Select"
1603 aria-labelledby="check-tree-view-checkboxes-8 text-tree-view-checkboxes-8"
1604 />
1605 </div>
1606 </span>
1607 <span
1608 class="pf-v6-c-tree-view__node-text"
1609 id="text-tree-view-checkboxes-8"
1610 >Settings</span>
1611 </span>
1612 </label>
1613 </div>
1614 </li>
1615 <li
1616 class="pf-v6-c-tree-view__list-item pf-m-expanded"
1617 role="treeitem"
1618 aria-checked="false"
1619 aria-expanded="true"
1620 tabindex="0"
1621 >
1622 <div class="pf-v6-c-tree-view__content">
1623 <label
1624 class="pf-v6-c-tree-view__node pf-m-selectable"
1625 tabindex="0"
1626 for="check-tree-view-checkboxes-9"
1627 >
1628 <span class="pf-v6-c-tree-view__node-container">
1629 <button
1630 class="pf-v6-c-tree-view__node-toggle"
1631 id="toggle-tree-view-checkboxes-9"
1632 aria-label="Toggle"
1633 aria-labelledby="toggle-tree-view-checkboxes-9 text-tree-view-checkboxes-9"
1634 >
1635 <span class="pf-v6-c-tree-view__node-toggle-icon">
1636 <svg
1637 class="pf-v6-svg"
1638 fill="currentColor"
1639 viewBox="0 0 20 20"
1640 aria-hidden="true"
1641 role="img"
1642 width="1em"
1643 height="1em"
1644 >
1645 <path
1646 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
1647 />
1648 </svg>
1649 </span>
1650 </button>
1651 <span class="pf-v6-c-tree-view__node-check">
1652 <div class="pf-v6-c-check pf-m-standalone">
1653 <input
1654 class="pf-v6-c-check__input"
1655 type="checkbox"
1656 id="check-tree-view-checkboxes-9"
1657 aria-label="Select"
1658 aria-labelledby="check-tree-view-checkboxes-9 text-tree-view-checkboxes-9"
1659 />
1660 </div>
1661 </span>
1662 <span
1663 class="pf-v6-c-tree-view__node-text"
1664 id="text-tree-view-checkboxes-9"
1665 >Current</span>
1666 </span>
1667 </label>
1668 </div>
1669 <ul class="pf-v6-c-tree-view__list" role="group">
1670 <li
1671 class="pf-v6-c-tree-view__list-item"
1672 role="treeitem"
1673 aria-checked="true"
1674 aria-expanded="false"
1675 tabindex="0"
1676 >
1677 <div class="pf-v6-c-tree-view__content">
1678 <label
1679 class="pf-v6-c-tree-view__node pf-m-selectable"
1680 tabindex="0"
1681 for="check-tree-view-checkboxes-10"
1682 >
1683 <span class="pf-v6-c-tree-view__node-container">
1684 <button
1685 class="pf-v6-c-tree-view__node-toggle"
1686 id="toggle-tree-view-checkboxes-10"
1687 aria-label="Toggle"
1688 aria-labelledby="toggle-tree-view-checkboxes-10 text-tree-view-checkboxes-10"
1689 >
1690 <span class="pf-v6-c-tree-view__node-toggle-icon">
1691 <svg
1692 class="pf-v6-svg"
1693 fill="currentColor"
1694 viewBox="0 0 20 20"
1695 aria-hidden="true"
1696 role="img"
1697 width="1em"
1698 height="1em"
1699 >
1700 <path
1701 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
1702 />
1703 </svg>
1704 </span>
1705 </button>
1706 <span class="pf-v6-c-tree-view__node-check">
1707 <div class="pf-v6-c-check pf-m-standalone">
1708 <input
1709 class="pf-v6-c-check__input"
1710 type="checkbox"
1711 checked
1712 id="check-tree-view-checkboxes-10"
1713 aria-label="Select"
1714 aria-labelledby="check-tree-view-checkboxes-10 text-tree-view-checkboxes-10"
1715 />
1716 </div>
1717 </span>
1718 <span
1719 class="pf-v6-c-tree-view__node-text"
1720 id="text-tree-view-checkboxes-10"
1721 >Loader app 1</span>
1722 </span>
1723 </label>
1724 </div>
1725 </li>
1726 <li
1727 class="pf-v6-c-tree-view__list-item"
1728 role="treeitem"
1729 aria-checked="true"
1730 tabindex="-1"
1731 >
1732 <div class="pf-v6-c-tree-view__content">
1733 <label
1734 class="pf-v6-c-tree-view__node"
1735 tabindex="0"
1736 for="check-tree-view-checkboxes-11"
1737 >
1738 <span class="pf-v6-c-tree-view__node-container">
1739 <span class="pf-v6-c-tree-view__node-check">
1740 <div class="pf-v6-c-check pf-m-standalone">
1741 <input
1742 class="pf-v6-c-check__input"
1743 type="checkbox"
1744 checked
1745 id="check-tree-view-checkboxes-11"
1746 aria-label="Select"
1747 aria-labelledby="check-tree-view-checkboxes-11 text-tree-view-checkboxes-11"
1748 />
1749 </div>
1750 </span>
1751 <span
1752 class="pf-v6-c-tree-view__node-text"
1753 id="text-tree-view-checkboxes-11"
1754 >Loader app 2</span>
1755 </span>
1756 </label>
1757 </div>
1758 </li>
1759 <li
1760 class="pf-v6-c-tree-view__list-item"
1761 role="treeitem"
1762 aria-checked="false"
1763 tabindex="-1"
1764 >
1765 <div class="pf-v6-c-tree-view__content">
1766 <label
1767 class="pf-v6-c-tree-view__node"
1768 tabindex="0"
1769 for="check-tree-view-checkboxes-12"
1770 >
1771 <span class="pf-v6-c-tree-view__node-container">
1772 <span class="pf-v6-c-tree-view__node-check">
1773 <div class="pf-v6-c-check pf-m-standalone">
1774 <input
1775 class="pf-v6-c-check__input"
1776 type="checkbox"
1777 id="check-tree-view-checkboxes-12"
1778 aria-label="Select"
1779 aria-labelledby="check-tree-view-checkboxes-12 text-tree-view-checkboxes-12"
1780 />
1781 </div>
1782 </span>
1783 <span
1784 class="pf-v6-c-tree-view__node-text"
1785 id="text-tree-view-checkboxes-12"
1786 >Loader app 3</span>
1787 </span>
1788 </label>
1789 </div>
1790 </li>
1791 </ul>
1792 </li>
1793 </ul>
1794 </li>
1795 </ul>
1796 </li>
1797 <li
1798 class="pf-v6-c-tree-view__list-item"
1799 role="treeitem"
1800 aria-checked="false"
1801 aria-expanded="false"
1802 tabindex="0"
1803 >
1804 <div class="pf-v6-c-tree-view__content">
1805 <label
1806 class="pf-v6-c-tree-view__node pf-m-selectable"
1807 tabindex="0"
1808 for="check-tree-view-checkboxes-13"
1809 >
1810 <span class="pf-v6-c-tree-view__node-container">
1811 <button
1812 class="pf-v6-c-tree-view__node-toggle"
1813 id="toggle-tree-view-checkboxes-13"
1814 aria-label="Toggle"
1815 aria-labelledby="toggle-tree-view-checkboxes-13 text-tree-view-checkboxes-13"
1816 >
1817 <span class="pf-v6-c-tree-view__node-toggle-icon">
1818 <svg
1819 class="pf-v6-svg"
1820 fill="currentColor"
1821 viewBox="0 0 20 20"
1822 aria-hidden="true"
1823 role="img"
1824 width="1em"
1825 height="1em"
1826 >
1827 <path
1828 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
1829 />
1830 </svg>
1831 </span>
1832 </button>
1833 <span class="pf-v6-c-tree-view__node-check">
1834 <div class="pf-v6-c-check pf-m-standalone">
1835 <input
1836 class="pf-v6-c-check__input"
1837 type="checkbox"
1838 id="check-tree-view-checkboxes-13"
1839 aria-label="Select"
1840 aria-labelledby="check-tree-view-checkboxes-13 text-tree-view-checkboxes-13"
1841 />
1842 </div>
1843 </span>
1844 <span
1845 class="pf-v6-c-tree-view__node-text"
1846 id="text-tree-view-checkboxes-13"
1847 >Cost management</span>
1848 </span>
1849 </label>
1850 </div>
1851 </li>
1852 <li
1853 class="pf-v6-c-tree-view__list-item"
1854 role="treeitem"
1855 aria-checked="false"
1856 aria-expanded="false"
1857 tabindex="0"
1858 >
1859 <div class="pf-v6-c-tree-view__content">
1860 <label
1861 class="pf-v6-c-tree-view__node pf-m-selectable"
1862 tabindex="0"
1863 for="check-tree-view-checkboxes-14"
1864 >
1865 <span class="pf-v6-c-tree-view__node-container">
1866 <button
1867 class="pf-v6-c-tree-view__node-toggle"
1868 id="toggle-tree-view-checkboxes-14"
1869 aria-label="Toggle"
1870 aria-labelledby="toggle-tree-view-checkboxes-14 text-tree-view-checkboxes-14"
1871 >
1872 <span class="pf-v6-c-tree-view__node-toggle-icon">
1873 <svg
1874 class="pf-v6-svg"
1875 fill="currentColor"
1876 viewBox="0 0 20 20"
1877 aria-hidden="true"
1878 role="img"
1879 width="1em"
1880 height="1em"
1881 >
1882 <path
1883 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
1884 />
1885 </svg>
1886 </span>
1887 </button>
1888 <span class="pf-v6-c-tree-view__node-check">
1889 <div class="pf-v6-c-check pf-m-standalone">
1890 <input
1891 class="pf-v6-c-check__input"
1892 type="checkbox"
1893 id="check-tree-view-checkboxes-14"
1894 aria-label="Select"
1895 aria-labelledby="check-tree-view-checkboxes-14 text-tree-view-checkboxes-14"
1896 />
1897 </div>
1898 </span>
1899 <span
1900 class="pf-v6-c-tree-view__node-text"
1901 id="text-tree-view-checkboxes-14"
1902 >Sources</span>
1903 </span>
1904 </label>
1905 </div>
1906 </li>
1907 <li
1908 class="pf-v6-c-tree-view__list-item"
1909 role="treeitem"
1910 aria-checked="true"
1911 aria-expanded="false"
1912 tabindex="0"
1913 >
1914 <div class="pf-v6-c-tree-view__content">
1915 <label
1916 class="pf-v6-c-tree-view__node pf-m-selectable"
1917 tabindex="0"
1918 for="check-tree-view-checkboxes-15"
1919 >
1920 <span class="pf-v6-c-tree-view__node-container">
1921 <button
1922 class="pf-v6-c-tree-view__node-toggle"
1923 id="toggle-tree-view-checkboxes-15"
1924 aria-label="Toggle"
1925 aria-labelledby="toggle-tree-view-checkboxes-15 text-tree-view-checkboxes-15"
1926 >
1927 <span class="pf-v6-c-tree-view__node-toggle-icon">
1928 <svg
1929 class="pf-v6-svg"
1930 fill="currentColor"
1931 viewBox="0 0 20 20"
1932 aria-hidden="true"
1933 role="img"
1934 width="1em"
1935 height="1em"
1936 >
1937 <path
1938 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
1939 />
1940 </svg>
1941 </span>
1942 </button>
1943 <span class="pf-v6-c-tree-view__node-check">
1944 <div class="pf-v6-c-check pf-m-standalone">
1945 <input
1946 class="pf-v6-c-check__input"
1947 type="checkbox"
1948 checked
1949 id="check-tree-view-checkboxes-15"
1950 aria-label="Select"
1951 aria-labelledby="check-tree-view-checkboxes-15 text-tree-view-checkboxes-15"
1952 />
1953 </div>
1954 </span>
1955 <span
1956 class="pf-v6-c-tree-view__node-text"
1957 id="text-tree-view-checkboxes-15"
1958 >This is a really really really long folder name that overflows from the width of the container.</span>
1959 </span>
1960 </label>
1961 </div>
1962 </li>
1963 </ul>
1964 </div>
1965
1966 ```
1967
1968 ### With icons
1969
1970 ```html
1971 <div class="pf-v6-c-tree-view">
1972 <ul
1973 class="pf-v6-c-tree-view__list"
1974 role="tree"
1975 aria-label="Tree View with icons example"
1976 >
1977 <li
1978 class="pf-v6-c-tree-view__list-item pf-m-expanded"
1979 role="treeitem"
1980 aria-selected="false"
1981 aria-expanded="true"
1982 tabindex="0"
1983 >
1984 <div class="pf-v6-c-tree-view__content">
1985 <button class="pf-v6-c-tree-view__node">
1986 <span class="pf-v6-c-tree-view__node-container">
1987 <span class="pf-v6-c-tree-view__node-toggle">
1988 <span class="pf-v6-c-tree-view__node-toggle-icon">
1989 <svg
1990 class="pf-v6-svg"
1991 fill="currentColor"
1992 viewBox="0 0 20 20"
1993 aria-hidden="true"
1994 role="img"
1995 width="1em"
1996 height="1em"
1997 >
1998 <path
1999 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
2000 />
2001 </svg>
2002 </span>
2003 </span>
2004 <span class="pf-v6-c-tree-view__node-icon">
2005 <i class="fas fa-folder-open" aria-hidden="true"></i>
2006 </span>
2007 <span class="pf-v6-c-tree-view__node-text">Application launcher</span>
2008 </span>
2009 </button>
2010 </div>
2011 <ul class="pf-v6-c-tree-view__list" role="group">
2012 <li
2013 class="pf-v6-c-tree-view__list-item pf-m-expanded"
2014 role="treeitem"
2015 aria-selected="false"
2016 aria-expanded="true"
2017 tabindex="0"
2018 >
2019 <div class="pf-v6-c-tree-view__content">
2020 <button class="pf-v6-c-tree-view__node">
2021 <span class="pf-v6-c-tree-view__node-container">
2022 <span class="pf-v6-c-tree-view__node-toggle">
2023 <span class="pf-v6-c-tree-view__node-toggle-icon">
2024 <svg
2025 class="pf-v6-svg"
2026 fill="currentColor"
2027 viewBox="0 0 20 20"
2028 aria-hidden="true"
2029 role="img"
2030 width="1em"
2031 height="1em"
2032 >
2033 <path
2034 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
2035 />
2036 </svg>
2037 </span>
2038 </span>
2039 <span class="pf-v6-c-tree-view__node-icon">
2040 <i class="fas fa-folder-open" aria-hidden="true"></i>
2041 </span>
2042 <span class="pf-v6-c-tree-view__node-text">Application 1</span>
2043 </span>
2044 </button>
2045 </div>
2046 <ul class="pf-v6-c-tree-view__list" role="group">
2047 <li
2048 class="pf-v6-c-tree-view__list-item"
2049 role="treeitem"
2050 aria-selected="false"
2051 tabindex="-1"
2052 >
2053 <div class="pf-v6-c-tree-view__content">
2054 <button class="pf-v6-c-tree-view__node">
2055 <span class="pf-v6-c-tree-view__node-container">
2056 <span class="pf-v6-c-tree-view__node-icon">
2057 <i class="fas fa-folder" aria-hidden="true"></i>
2058 </span>
2059 <span class="pf-v6-c-tree-view__node-text">Settings</span>
2060 </span>
2061 </button>
2062 </div>
2063 </li>
2064 <li
2065 class="pf-v6-c-tree-view__list-item"
2066 role="treeitem"
2067 aria-selected="true"
2068 tabindex="-1"
2069 >
2070 <div class="pf-v6-c-tree-view__content">
2071 <button class="pf-v6-c-tree-view__node pf-m-current">
2072 <span class="pf-v6-c-tree-view__node-container">
2073 <span class="pf-v6-c-tree-view__node-icon">
2074 <i class="fas fa-folder" aria-hidden="true"></i>
2075 </span>
2076 <span class="pf-v6-c-tree-view__node-text">Current</span>
2077 </span>
2078 </button>
2079 </div>
2080 </li>
2081 </ul>
2082 </li>
2083 <li
2084 class="pf-v6-c-tree-view__list-item pf-m-expanded"
2085 role="treeitem"
2086 aria-selected="false"
2087 aria-expanded="true"
2088 tabindex="0"
2089 >
2090 <div class="pf-v6-c-tree-view__content">
2091 <button class="pf-v6-c-tree-view__node pf-m-disabled">
2092 <span class="pf-v6-c-tree-view__node-container">
2093 <span class="pf-v6-c-tree-view__node-toggle pf-m-disabled">
2094 <span class="pf-v6-c-tree-view__node-toggle-icon">
2095 <svg
2096 class="pf-v6-svg"
2097 fill="currentColor"
2098 viewBox="0 0 20 20"
2099 aria-hidden="true"
2100 role="img"
2101 width="1em"
2102 height="1em"
2103 >
2104 <path
2105 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
2106 />
2107 </svg>
2108 </span>
2109 </span>
2110 <span class="pf-v6-c-tree-view__node-icon">
2111 <i class="fas fa-folder-open" aria-hidden="true"></i>
2112 </span>
2113 <span
2114 class="pf-v6-c-tree-view__node-text"
2115 >Application 2 (disabled item and toggle)</span>
2116 </span>
2117 </button>
2118 </div>
2119 <ul class="pf-v6-c-tree-view__list" role="group">
2120 <li
2121 class="pf-v6-c-tree-view__list-item"
2122 role="treeitem"
2123 aria-selected="false"
2124 aria-expanded="false"
2125 tabindex="0"
2126 >
2127 <div class="pf-v6-c-tree-view__content">
2128 <button class="pf-v6-c-tree-view__node">
2129 <span class="pf-v6-c-tree-view__node-container">
2130 <span class="pf-v6-c-tree-view__node-toggle">
2131 <span class="pf-v6-c-tree-view__node-toggle-icon">
2132 <svg
2133 class="pf-v6-svg"
2134 fill="currentColor"
2135 viewBox="0 0 20 20"
2136 aria-hidden="true"
2137 role="img"
2138 width="1em"
2139 height="1em"
2140 >
2141 <path
2142 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
2143 />
2144 </svg>
2145 </span>
2146 </span>
2147 <span class="pf-v6-c-tree-view__node-icon">
2148 <i class="fas fa-folder" aria-hidden="true"></i>
2149 </span>
2150 <span class="pf-v6-c-tree-view__node-text">Settings</span>
2151 </span>
2152 </button>
2153 </div>
2154 </li>
2155 <li
2156 class="pf-v6-c-tree-view__list-item pf-m-expanded"
2157 role="treeitem"
2158 aria-selected="false"
2159 aria-expanded="true"
2160 tabindex="0"
2161 >
2162 <div class="pf-v6-c-tree-view__content">
2163 <button class="pf-v6-c-tree-view__node">
2164 <span class="pf-v6-c-tree-view__node-container">
2165 <span class="pf-v6-c-tree-view__node-toggle">
2166 <span class="pf-v6-c-tree-view__node-toggle-icon">
2167 <svg
2168 class="pf-v6-svg"
2169 fill="currentColor"
2170 viewBox="0 0 20 20"
2171 aria-hidden="true"
2172 role="img"
2173 width="1em"
2174 height="1em"
2175 >
2176 <path
2177 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
2178 />
2179 </svg>
2180 </span>
2181 </span>
2182 <span class="pf-v6-c-tree-view__node-icon">
2183 <i class="fas fa-folder-open" aria-hidden="true"></i>
2184 </span>
2185 <span class="pf-v6-c-tree-view__node-text">Loader</span>
2186 </span>
2187 </button>
2188 </div>
2189 <ul class="pf-v6-c-tree-view__list" role="group">
2190 <li
2191 class="pf-v6-c-tree-view__list-item"
2192 role="treeitem"
2193 aria-selected="false"
2194 aria-expanded="false"
2195 tabindex="0"
2196 >
2197 <div class="pf-v6-c-tree-view__content">
2198 <button class="pf-v6-c-tree-view__node">
2199 <span class="pf-v6-c-tree-view__node-container">
2200 <span class="pf-v6-c-tree-view__node-toggle">
2201 <span class="pf-v6-c-tree-view__node-toggle-icon">
2202 <svg
2203 class="pf-v6-svg"
2204 fill="currentColor"
2205 viewBox="0 0 20 20"
2206 aria-hidden="true"
2207 role="img"
2208 width="1em"
2209 height="1em"
2210 >
2211 <path
2212 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
2213 />
2214 </svg>
2215 </span>
2216 </span>
2217 <span class="pf-v6-c-tree-view__node-icon">
2218 <i class="fas fa-folder" aria-hidden="true"></i>
2219 </span>
2220 <span class="pf-v6-c-tree-view__node-text">Loader app 1</span>
2221 </span>
2222 </button>
2223 </div>
2224 </li>
2225 <li
2226 class="pf-v6-c-tree-view__list-item"
2227 role="treeitem"
2228 aria-selected="false"
2229 tabindex="-1"
2230 >
2231 <div class="pf-v6-c-tree-view__content">
2232 <button class="pf-v6-c-tree-view__node">
2233 <span class="pf-v6-c-tree-view__node-container">
2234 <span class="pf-v6-c-tree-view__node-icon">
2235 <i class="fas fa-folder" aria-hidden="true"></i>
2236 </span>
2237 <span class="pf-v6-c-tree-view__node-text">Loader app 2</span>
2238 </span>
2239 </button>
2240 </div>
2241 </li>
2242 <li
2243 class="pf-v6-c-tree-view__list-item"
2244 role="treeitem"
2245 aria-selected="false"
2246 tabindex="-1"
2247 >
2248 <div class="pf-v6-c-tree-view__content">
2249 <button class="pf-v6-c-tree-view__node">
2250 <span class="pf-v6-c-tree-view__node-container">
2251 <span class="pf-v6-c-tree-view__node-icon">
2252 <i class="fas fa-folder" aria-hidden="true"></i>
2253 </span>
2254 <span class="pf-v6-c-tree-view__node-text">Loader app 3</span>
2255 </span>
2256 </button>
2257 </div>
2258 </li>
2259 </ul>
2260 </li>
2261 </ul>
2262 </li>
2263 </ul>
2264 </li>
2265 <li
2266 class="pf-v6-c-tree-view__list-item"
2267 role="treeitem"
2268 aria-selected="false"
2269 aria-expanded="false"
2270 tabindex="0"
2271 >
2272 <div class="pf-v6-c-tree-view__content">
2273 <button class="pf-v6-c-tree-view__node">
2274 <span class="pf-v6-c-tree-view__node-container">
2275 <span class="pf-v6-c-tree-view__node-toggle">
2276 <span class="pf-v6-c-tree-view__node-toggle-icon">
2277 <svg
2278 class="pf-v6-svg"
2279 fill="currentColor"
2280 viewBox="0 0 20 20"
2281 aria-hidden="true"
2282 role="img"
2283 width="1em"
2284 height="1em"
2285 >
2286 <path
2287 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
2288 />
2289 </svg>
2290 </span>
2291 </span>
2292 <span class="pf-v6-c-tree-view__node-icon">
2293 <i class="fas fa-folder" aria-hidden="true"></i>
2294 </span>
2295 <span class="pf-v6-c-tree-view__node-text">Cost management</span>
2296 </span>
2297 </button>
2298 </div>
2299 </li>
2300 <li
2301 class="pf-v6-c-tree-view__list-item"
2302 role="treeitem"
2303 aria-selected="false"
2304 aria-expanded="false"
2305 tabindex="0"
2306 >
2307 <div class="pf-v6-c-tree-view__content">
2308 <button class="pf-v6-c-tree-view__node">
2309 <span class="pf-v6-c-tree-view__node-container">
2310 <span class="pf-v6-c-tree-view__node-toggle">
2311 <span class="pf-v6-c-tree-view__node-toggle-icon">
2312 <svg
2313 class="pf-v6-svg"
2314 fill="currentColor"
2315 viewBox="0 0 20 20"
2316 aria-hidden="true"
2317 role="img"
2318 width="1em"
2319 height="1em"
2320 >
2321 <path
2322 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
2323 />
2324 </svg>
2325 </span>
2326 </span>
2327 <span class="pf-v6-c-tree-view__node-icon">
2328 <i class="fas fa-folder" aria-hidden="true"></i>
2329 </span>
2330 <span class="pf-v6-c-tree-view__node-text">Sources</span>
2331 </span>
2332 </button>
2333 </div>
2334 </li>
2335 <li
2336 class="pf-v6-c-tree-view__list-item"
2337 role="treeitem"
2338 aria-selected="false"
2339 aria-expanded="false"
2340 tabindex="0"
2341 >
2342 <div class="pf-v6-c-tree-view__content">
2343 <button class="pf-v6-c-tree-view__node">
2344 <span class="pf-v6-c-tree-view__node-container">
2345 <span class="pf-v6-c-tree-view__node-toggle">
2346 <span class="pf-v6-c-tree-view__node-toggle-icon">
2347 <svg
2348 class="pf-v6-svg"
2349 fill="currentColor"
2350 viewBox="0 0 20 20"
2351 aria-hidden="true"
2352 role="img"
2353 width="1em"
2354 height="1em"
2355 >
2356 <path
2357 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
2358 />
2359 </svg>
2360 </span>
2361 </span>
2362 <span class="pf-v6-c-tree-view__node-icon">
2363 <i class="fas fa-folder" aria-hidden="true"></i>
2364 </span>
2365 <span
2366 class="pf-v6-c-tree-view__node-text"
2367 >This is a really really really long folder name that overflows from the width of the container.</span>
2368 </span>
2369 </button>
2370 </div>
2371 </li>
2372 </ul>
2373 </div>
2374
2375 ```
2376
2377 ### With badges
2378
2379 ```html
2380 <div class="pf-v6-c-tree-view">
2381 <ul
2382 class="pf-v6-c-tree-view__list"
2383 role="tree"
2384 aria-label="Tree View with badges example"
2385 >
2386 <li
2387 class="pf-v6-c-tree-view__list-item pf-m-expanded"
2388 role="treeitem"
2389 aria-selected="false"
2390 aria-expanded="true"
2391 tabindex="0"
2392 >
2393 <div class="pf-v6-c-tree-view__content">
2394 <button class="pf-v6-c-tree-view__node">
2395 <span class="pf-v6-c-tree-view__node-container">
2396 <span class="pf-v6-c-tree-view__node-toggle">
2397 <span class="pf-v6-c-tree-view__node-toggle-icon">
2398 <svg
2399 class="pf-v6-svg"
2400 fill="currentColor"
2401 viewBox="0 0 20 20"
2402 aria-hidden="true"
2403 role="img"
2404 width="1em"
2405 height="1em"
2406 >
2407 <path
2408 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
2409 />
2410 </svg>
2411 </span>
2412 </span>
2413 <span class="pf-v6-c-tree-view__node-text">Application launcher</span>
2414 <span class="pf-v6-c-tree-view__node-count">
2415 <span class="pf-v6-c-badge pf-m-read">2</span>
2416 </span>
2417 </span>
2418 </button>
2419 </div>
2420 <ul class="pf-v6-c-tree-view__list" role="group">
2421 <li
2422 class="pf-v6-c-tree-view__list-item pf-m-expanded"
2423 role="treeitem"
2424 aria-selected="false"
2425 aria-expanded="true"
2426 tabindex="0"
2427 >
2428 <div class="pf-v6-c-tree-view__content">
2429 <button class="pf-v6-c-tree-view__node">
2430 <span class="pf-v6-c-tree-view__node-container">
2431 <span class="pf-v6-c-tree-view__node-toggle">
2432 <span class="pf-v6-c-tree-view__node-toggle-icon">
2433 <svg
2434 class="pf-v6-svg"
2435 fill="currentColor"
2436 viewBox="0 0 20 20"
2437 aria-hidden="true"
2438 role="img"
2439 width="1em"
2440 height="1em"
2441 >
2442 <path
2443 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
2444 />
2445 </svg>
2446 </span>
2447 </span>
2448 <span class="pf-v6-c-tree-view__node-text">Application 1</span>
2449 <span class="pf-v6-c-tree-view__node-count">
2450 <span class="pf-v6-c-badge pf-m-read">2</span>
2451 </span>
2452 </span>
2453 </button>
2454 </div>
2455 <ul class="pf-v6-c-tree-view__list" role="group">
2456 <li
2457 class="pf-v6-c-tree-view__list-item"
2458 role="treeitem"
2459 aria-selected="false"
2460 tabindex="-1"
2461 >
2462 <div class="pf-v6-c-tree-view__content">
2463 <button class="pf-v6-c-tree-view__node">
2464 <span class="pf-v6-c-tree-view__node-container">
2465 <span class="pf-v6-c-tree-view__node-text">Settings</span>
2466 </span>
2467 </button>
2468 </div>
2469 </li>
2470 <li
2471 class="pf-v6-c-tree-view__list-item"
2472 role="treeitem"
2473 aria-selected="true"
2474 tabindex="-1"
2475 >
2476 <div class="pf-v6-c-tree-view__content">
2477 <button class="pf-v6-c-tree-view__node pf-m-current">
2478 <span class="pf-v6-c-tree-view__node-container">
2479 <span class="pf-v6-c-tree-view__node-text">Current</span>
2480 </span>
2481 </button>
2482 </div>
2483 </li>
2484 </ul>
2485 </li>
2486 <li
2487 class="pf-v6-c-tree-view__list-item pf-m-expanded"
2488 role="treeitem"
2489 aria-selected="false"
2490 aria-expanded="true"
2491 tabindex="0"
2492 >
2493 <div class="pf-v6-c-tree-view__content">
2494 <button class="pf-v6-c-tree-view__node">
2495 <span class="pf-v6-c-tree-view__node-container">
2496 <span class="pf-v6-c-tree-view__node-toggle">
2497 <span class="pf-v6-c-tree-view__node-toggle-icon">
2498 <svg
2499 class="pf-v6-svg"
2500 fill="currentColor"
2501 viewBox="0 0 20 20"
2502 aria-hidden="true"
2503 role="img"
2504 width="1em"
2505 height="1em"
2506 >
2507 <path
2508 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
2509 />
2510 </svg>
2511 </span>
2512 </span>
2513 <span class="pf-v6-c-tree-view__node-text">Application 2</span>
2514 <span class="pf-v6-c-tree-view__node-count">
2515 <span class="pf-v6-c-badge pf-m-read">2</span>
2516 </span>
2517 </span>
2518 </button>
2519 </div>
2520 <ul class="pf-v6-c-tree-view__list" role="group">
2521 <li
2522 class="pf-v6-c-tree-view__list-item"
2523 role="treeitem"
2524 aria-selected="false"
2525 aria-expanded="false"
2526 tabindex="0"
2527 >
2528 <div class="pf-v6-c-tree-view__content">
2529 <button class="pf-v6-c-tree-view__node">
2530 <span class="pf-v6-c-tree-view__node-container">
2531 <span class="pf-v6-c-tree-view__node-toggle">
2532 <span class="pf-v6-c-tree-view__node-toggle-icon">
2533 <svg
2534 class="pf-v6-svg"
2535 fill="currentColor"
2536 viewBox="0 0 20 20"
2537 aria-hidden="true"
2538 role="img"
2539 width="1em"
2540 height="1em"
2541 >
2542 <path
2543 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
2544 />
2545 </svg>
2546 </span>
2547 </span>
2548 <span class="pf-v6-c-tree-view__node-text">Settings</span>
2549 <span class="pf-v6-c-tree-view__node-count">
2550 <span class="pf-v6-c-badge pf-m-read">2</span>
2551 </span>
2552 </span>
2553 </button>
2554 </div>
2555 </li>
2556 <li
2557 class="pf-v6-c-tree-view__list-item pf-m-expanded"
2558 role="treeitem"
2559 aria-selected="false"
2560 aria-expanded="true"
2561 tabindex="0"
2562 >
2563 <div class="pf-v6-c-tree-view__content">
2564 <button class="pf-v6-c-tree-view__node">
2565 <span class="pf-v6-c-tree-view__node-container">
2566 <span class="pf-v6-c-tree-view__node-toggle">
2567 <span class="pf-v6-c-tree-view__node-toggle-icon">
2568 <svg
2569 class="pf-v6-svg"
2570 fill="currentColor"
2571 viewBox="0 0 20 20"
2572 aria-hidden="true"
2573 role="img"
2574 width="1em"
2575 height="1em"
2576 >
2577 <path
2578 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
2579 />
2580 </svg>
2581 </span>
2582 </span>
2583 <span class="pf-v6-c-tree-view__node-text">Loader</span>
2584 <span class="pf-v6-c-tree-view__node-count">
2585 <span class="pf-v6-c-badge pf-m-read">2</span>
2586 </span>
2587 </span>
2588 </button>
2589 </div>
2590 <ul class="pf-v6-c-tree-view__list" role="group">
2591 <li
2592 class="pf-v6-c-tree-view__list-item"
2593 role="treeitem"
2594 aria-selected="false"
2595 aria-expanded="false"
2596 tabindex="0"
2597 >
2598 <div class="pf-v6-c-tree-view__content">
2599 <button class="pf-v6-c-tree-view__node">
2600 <span class="pf-v6-c-tree-view__node-container">
2601 <span class="pf-v6-c-tree-view__node-toggle">
2602 <span class="pf-v6-c-tree-view__node-toggle-icon">
2603 <svg
2604 class="pf-v6-svg"
2605 fill="currentColor"
2606 viewBox="0 0 20 20"
2607 aria-hidden="true"
2608 role="img"
2609 width="1em"
2610 height="1em"
2611 >
2612 <path
2613 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
2614 />
2615 </svg>
2616 </span>
2617 </span>
2618 <span class="pf-v6-c-tree-view__node-text">Loader app 1</span>
2619 <span class="pf-v6-c-tree-view__node-count">
2620 <span class="pf-v6-c-badge pf-m-read">2</span>
2621 </span>
2622 </span>
2623 </button>
2624 </div>
2625 </li>
2626 <li
2627 class="pf-v6-c-tree-view__list-item"
2628 role="treeitem"
2629 aria-selected="false"
2630 tabindex="-1"
2631 >
2632 <div class="pf-v6-c-tree-view__content">
2633 <button class="pf-v6-c-tree-view__node">
2634 <span class="pf-v6-c-tree-view__node-container">
2635 <span class="pf-v6-c-tree-view__node-text">Loader app 2</span>
2636 </span>
2637 </button>
2638 </div>
2639 </li>
2640 <li
2641 class="pf-v6-c-tree-view__list-item"
2642 role="treeitem"
2643 aria-selected="false"
2644 tabindex="-1"
2645 >
2646 <div class="pf-v6-c-tree-view__content">
2647 <button class="pf-v6-c-tree-view__node">
2648 <span class="pf-v6-c-tree-view__node-container">
2649 <span class="pf-v6-c-tree-view__node-text">Loader app 3</span>
2650 </span>
2651 </button>
2652 </div>
2653 </li>
2654 </ul>
2655 </li>
2656 </ul>
2657 </li>
2658 </ul>
2659 </li>
2660 <li
2661 class="pf-v6-c-tree-view__list-item"
2662 role="treeitem"
2663 aria-selected="false"
2664 aria-expanded="false"
2665 tabindex="0"
2666 >
2667 <div class="pf-v6-c-tree-view__content">
2668 <button class="pf-v6-c-tree-view__node">
2669 <span class="pf-v6-c-tree-view__node-container">
2670 <span class="pf-v6-c-tree-view__node-toggle">
2671 <span class="pf-v6-c-tree-view__node-toggle-icon">
2672 <svg
2673 class="pf-v6-svg"
2674 fill="currentColor"
2675 viewBox="0 0 20 20"
2676 aria-hidden="true"
2677 role="img"
2678 width="1em"
2679 height="1em"
2680 >
2681 <path
2682 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
2683 />
2684 </svg>
2685 </span>
2686 </span>
2687 <span class="pf-v6-c-tree-view__node-text">Cost management</span>
2688 <span class="pf-v6-c-tree-view__node-count">
2689 <span class="pf-v6-c-badge pf-m-read">2</span>
2690 </span>
2691 </span>
2692 </button>
2693 </div>
2694 </li>
2695 <li
2696 class="pf-v6-c-tree-view__list-item"
2697 role="treeitem"
2698 aria-selected="false"
2699 aria-expanded="false"
2700 tabindex="0"
2701 >
2702 <div class="pf-v6-c-tree-view__content">
2703 <button class="pf-v6-c-tree-view__node">
2704 <span class="pf-v6-c-tree-view__node-container">
2705 <span class="pf-v6-c-tree-view__node-toggle">
2706 <span class="pf-v6-c-tree-view__node-toggle-icon">
2707 <svg
2708 class="pf-v6-svg"
2709 fill="currentColor"
2710 viewBox="0 0 20 20"
2711 aria-hidden="true"
2712 role="img"
2713 width="1em"
2714 height="1em"
2715 >
2716 <path
2717 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
2718 />
2719 </svg>
2720 </span>
2721 </span>
2722 <span class="pf-v6-c-tree-view__node-text">Sources</span>
2723 <span class="pf-v6-c-tree-view__node-count">
2724 <span class="pf-v6-c-badge pf-m-read">2</span>
2725 </span>
2726 </span>
2727 </button>
2728 </div>
2729 </li>
2730 <li
2731 class="pf-v6-c-tree-view__list-item"
2732 role="treeitem"
2733 aria-selected="false"
2734 aria-expanded="false"
2735 tabindex="0"
2736 >
2737 <div class="pf-v6-c-tree-view__content">
2738 <button class="pf-v6-c-tree-view__node">
2739 <span class="pf-v6-c-tree-view__node-container">
2740 <span class="pf-v6-c-tree-view__node-toggle">
2741 <span class="pf-v6-c-tree-view__node-toggle-icon">
2742 <svg
2743 class="pf-v6-svg"
2744 fill="currentColor"
2745 viewBox="0 0 20 20"
2746 aria-hidden="true"
2747 role="img"
2748 width="1em"
2749 height="1em"
2750 >
2751 <path
2752 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
2753 />
2754 </svg>
2755 </span>
2756 </span>
2757 <span
2758 class="pf-v6-c-tree-view__node-text"
2759 >This is a really really really long folder name that overflows from the width of the container.</span>
2760 <span class="pf-v6-c-tree-view__node-count">
2761 <span class="pf-v6-c-badge pf-m-read">2</span>
2762 </span>
2763 </span>
2764 </button>
2765 </div>
2766 </li>
2767 </ul>
2768 </div>
2769
2770 ```
2771
2772 ### With action item
2773
2774 ```html
2775 <div class="pf-v6-c-tree-view">
2776 <ul
2777 class="pf-v6-c-tree-view__list"
2778 role="tree"
2779 aria-label="Tree View with action item example"
2780 >
2781 <li
2782 class="pf-v6-c-tree-view__list-item pf-m-expanded"
2783 role="treeitem"
2784 aria-selected="false"
2785 aria-expanded="true"
2786 tabindex="0"
2787 >
2788 <div class="pf-v6-c-tree-view__content">
2789 <button class="pf-v6-c-tree-view__node">
2790 <span class="pf-v6-c-tree-view__node-container">
2791 <span class="pf-v6-c-tree-view__node-toggle">
2792 <span class="pf-v6-c-tree-view__node-toggle-icon">
2793 <svg
2794 class="pf-v6-svg"
2795 fill="currentColor"
2796 viewBox="0 0 20 20"
2797 aria-hidden="true"
2798 role="img"
2799 width="1em"
2800 height="1em"
2801 >
2802 <path
2803 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
2804 />
2805 </svg>
2806 </span>
2807 </span>
2808 <span class="pf-v6-c-tree-view__node-text">Application launcher</span>
2809 </span>
2810 </button>
2811
2812 <div class="pf-v6-c-tree-view__action">
2813 <button
2814 class="pf-v6-c-button pf-m-plain"
2815 type="button"
2816 aria-label="Actions"
2817 tabindex="-1"
2818 >
2819 <span class="pf-v6-c-button__icon">
2820 <svg
2821 class="pf-v6-svg"
2822 fill="currentColor"
2823 viewBox="0 0 32 32"
2824 aria-hidden="true"
2825 role="img"
2826 width="1em"
2827 height="1em"
2828 >
2829 <path
2830 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"
2831 />
2832 </svg>
2833 </span>
2834 </button>
2835 </div>
2836 </div>
2837 <ul class="pf-v6-c-tree-view__list" role="group">
2838 <li
2839 class="pf-v6-c-tree-view__list-item pf-m-expanded"
2840 role="treeitem"
2841 aria-selected="false"
2842 aria-expanded="true"
2843 tabindex="0"
2844 >
2845 <div class="pf-v6-c-tree-view__content">
2846 <button class="pf-v6-c-tree-view__node">
2847 <span class="pf-v6-c-tree-view__node-container">
2848 <span class="pf-v6-c-tree-view__node-toggle">
2849 <span class="pf-v6-c-tree-view__node-toggle-icon">
2850 <svg
2851 class="pf-v6-svg"
2852 fill="currentColor"
2853 viewBox="0 0 20 20"
2854 aria-hidden="true"
2855 role="img"
2856 width="1em"
2857 height="1em"
2858 >
2859 <path
2860 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
2861 />
2862 </svg>
2863 </span>
2864 </span>
2865 <span class="pf-v6-c-tree-view__node-text">Application 1</span>
2866 </span>
2867 </button>
2868
2869 <div class="pf-v6-c-tree-view__action">
2870 <button
2871 class="pf-v6-c-button pf-m-plain"
2872 type="button"
2873 aria-label="Copy"
2874 tabindex="-1"
2875 >
2876 <span class="pf-v6-c-button__icon">
2877 <svg
2878 class="pf-v6-svg"
2879 fill="currentColor"
2880 viewBox="0 0 384 512"
2881 aria-hidden="true"
2882 role="img"
2883 width="1em"
2884 height="1em"
2885 >
2886 <path
2887 d="M384 112v352c0 26.51-21.49 48-48 48H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h80c0-35.29 28.71-64 64-64s64 28.71 64 64h80c26.51 0 48 21.49 48 48zM192 40c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24m96 114v-20a6 6 0 0 0-6-6H102a6 6 0 0 0-6 6v20a6 6 0 0 0 6 6h180a6 6 0 0 0 6-6z"
2888 />
2889 </svg>
2890 </span>
2891 </button>
2892 </div>
2893 </div>
2894 <ul class="pf-v6-c-tree-view__list" role="group">
2895 <li
2896 class="pf-v6-c-tree-view__list-item"
2897 role="treeitem"
2898 aria-selected="false"
2899 tabindex="-1"
2900 >
2901 <div class="pf-v6-c-tree-view__content">
2902 <button class="pf-v6-c-tree-view__node">
2903 <span class="pf-v6-c-tree-view__node-container">
2904 <span class="pf-v6-c-tree-view__node-text">Settings</span>
2905 </span>
2906 </button>
2907 </div>
2908 </li>
2909 <li
2910 class="pf-v6-c-tree-view__list-item"
2911 role="treeitem"
2912 aria-selected="true"
2913 tabindex="-1"
2914 >
2915 <div class="pf-v6-c-tree-view__content">
2916 <button class="pf-v6-c-tree-view__node pf-m-current">
2917 <span class="pf-v6-c-tree-view__node-container">
2918 <span class="pf-v6-c-tree-view__node-text">Current</span>
2919 </span>
2920 </button>
2921 </div>
2922 </li>
2923 </ul>
2924 </li>
2925 <li
2926 class="pf-v6-c-tree-view__list-item pf-m-expanded"
2927 role="treeitem"
2928 aria-selected="false"
2929 aria-expanded="true"
2930 tabindex="0"
2931 >
2932 <div class="pf-v6-c-tree-view__content">
2933 <button class="pf-v6-c-tree-view__node">
2934 <span class="pf-v6-c-tree-view__node-container">
2935 <span class="pf-v6-c-tree-view__node-toggle">
2936 <span class="pf-v6-c-tree-view__node-toggle-icon">
2937 <svg
2938 class="pf-v6-svg"
2939 fill="currentColor"
2940 viewBox="0 0 20 20"
2941 aria-hidden="true"
2942 role="img"
2943 width="1em"
2944 height="1em"
2945 >
2946 <path
2947 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
2948 />
2949 </svg>
2950 </span>
2951 </span>
2952 <span class="pf-v6-c-tree-view__node-text">Application 2</span>
2953 </span>
2954 </button>
2955
2956 <div class="pf-v6-c-tree-view__action">
2957 <button
2958 class="pf-v6-c-button pf-m-plain"
2959 type="button"
2960 aria-label="Action"
2961 tabindex="-1"
2962 >
2963 <span class="pf-v6-c-button__icon">
2964 <svg
2965 class="pf-v6-svg"
2966 fill="currentColor"
2967 viewBox="0 0 448 512"
2968 aria-hidden="true"
2969 role="img"
2970 width="1em"
2971 height="1em"
2972 >
2973 <path
2974 d="M16 132h416c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H16C7.163 60 0 67.163 0 76v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h416c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H16c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"
2975 />
2976 </svg>
2977 </span>
2978 </button>
2979 </div>
2980 </div>
2981 <ul class="pf-v6-c-tree-view__list" role="group">
2982 <li
2983 class="pf-v6-c-tree-view__list-item"
2984 role="treeitem"
2985 aria-selected="false"
2986 aria-expanded="false"
2987 tabindex="0"
2988 >
2989 <div class="pf-v6-c-tree-view__content">
2990 <button class="pf-v6-c-tree-view__node">
2991 <span class="pf-v6-c-tree-view__node-container">
2992 <span class="pf-v6-c-tree-view__node-toggle">
2993 <span class="pf-v6-c-tree-view__node-toggle-icon">
2994 <svg
2995 class="pf-v6-svg"
2996 fill="currentColor"
2997 viewBox="0 0 20 20"
2998 aria-hidden="true"
2999 role="img"
3000 width="1em"
3001 height="1em"
3002 >
3003 <path
3004 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
3005 />
3006 </svg>
3007 </span>
3008 </span>
3009 <span class="pf-v6-c-tree-view__node-text">Settings</span>
3010 </span>
3011 </button>
3012 </div>
3013 </li>
3014 <li
3015 class="pf-v6-c-tree-view__list-item pf-m-expanded"
3016 role="treeitem"
3017 aria-selected="false"
3018 aria-expanded="true"
3019 tabindex="0"
3020 >
3021 <div class="pf-v6-c-tree-view__content">
3022 <button class="pf-v6-c-tree-view__node">
3023 <span class="pf-v6-c-tree-view__node-container">
3024 <span class="pf-v6-c-tree-view__node-toggle">
3025 <span class="pf-v6-c-tree-view__node-toggle-icon">
3026 <svg
3027 class="pf-v6-svg"
3028 fill="currentColor"
3029 viewBox="0 0 20 20"
3030 aria-hidden="true"
3031 role="img"
3032 width="1em"
3033 height="1em"
3034 >
3035 <path
3036 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
3037 />
3038 </svg>
3039 </span>
3040 </span>
3041 <span class="pf-v6-c-tree-view__node-text">Loader</span>
3042 </span>
3043 </button>
3044 </div>
3045 <ul class="pf-v6-c-tree-view__list" role="group">
3046 <li
3047 class="pf-v6-c-tree-view__list-item"
3048 role="treeitem"
3049 aria-selected="false"
3050 aria-expanded="false"
3051 tabindex="0"
3052 >
3053 <div class="pf-v6-c-tree-view__content">
3054 <button class="pf-v6-c-tree-view__node">
3055 <span class="pf-v6-c-tree-view__node-container">
3056 <span class="pf-v6-c-tree-view__node-toggle">
3057 <span class="pf-v6-c-tree-view__node-toggle-icon">
3058 <svg
3059 class="pf-v6-svg"
3060 fill="currentColor"
3061 viewBox="0 0 20 20"
3062 aria-hidden="true"
3063 role="img"
3064 width="1em"
3065 height="1em"
3066 >
3067 <path
3068 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
3069 />
3070 </svg>
3071 </span>
3072 </span>
3073 <span class="pf-v6-c-tree-view__node-text">Loader app 1</span>
3074 </span>
3075 </button>
3076 </div>
3077 </li>
3078 <li
3079 class="pf-v6-c-tree-view__list-item"
3080 role="treeitem"
3081 aria-selected="false"
3082 tabindex="-1"
3083 >
3084 <div class="pf-v6-c-tree-view__content">
3085 <button class="pf-v6-c-tree-view__node">
3086 <span class="pf-v6-c-tree-view__node-container">
3087 <span class="pf-v6-c-tree-view__node-text">Loader app 2</span>
3088 </span>
3089 </button>
3090 </div>
3091 </li>
3092 <li
3093 class="pf-v6-c-tree-view__list-item"
3094 role="treeitem"
3095 aria-selected="false"
3096 tabindex="-1"
3097 >
3098 <div class="pf-v6-c-tree-view__content">
3099 <button class="pf-v6-c-tree-view__node">
3100 <span class="pf-v6-c-tree-view__node-container">
3101 <span class="pf-v6-c-tree-view__node-text">Loader app 3</span>
3102 </span>
3103 </button>
3104 </div>
3105 </li>
3106 </ul>
3107 </li>
3108 </ul>
3109 </li>
3110 </ul>
3111 </li>
3112 <li
3113 class="pf-v6-c-tree-view__list-item"
3114 role="treeitem"
3115 aria-selected="false"
3116 aria-expanded="false"
3117 tabindex="0"
3118 >
3119 <div class="pf-v6-c-tree-view__content">
3120 <button class="pf-v6-c-tree-view__node">
3121 <span class="pf-v6-c-tree-view__node-container">
3122 <span class="pf-v6-c-tree-view__node-toggle">
3123 <span class="pf-v6-c-tree-view__node-toggle-icon">
3124 <svg
3125 class="pf-v6-svg"
3126 fill="currentColor"
3127 viewBox="0 0 20 20"
3128 aria-hidden="true"
3129 role="img"
3130 width="1em"
3131 height="1em"
3132 >
3133 <path
3134 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
3135 />
3136 </svg>
3137 </span>
3138 </span>
3139 <span class="pf-v6-c-tree-view__node-text">Cost management</span>
3140 </span>
3141 </button>
3142 </div>
3143 </li>
3144 <li
3145 class="pf-v6-c-tree-view__list-item"
3146 role="treeitem"
3147 aria-selected="false"
3148 aria-expanded="false"
3149 tabindex="0"
3150 >
3151 <div class="pf-v6-c-tree-view__content">
3152 <button class="pf-v6-c-tree-view__node">
3153 <span class="pf-v6-c-tree-view__node-container">
3154 <span class="pf-v6-c-tree-view__node-toggle">
3155 <span class="pf-v6-c-tree-view__node-toggle-icon">
3156 <svg
3157 class="pf-v6-svg"
3158 fill="currentColor"
3159 viewBox="0 0 20 20"
3160 aria-hidden="true"
3161 role="img"
3162 width="1em"
3163 height="1em"
3164 >
3165 <path
3166 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
3167 />
3168 </svg>
3169 </span>
3170 </span>
3171 <span class="pf-v6-c-tree-view__node-text">Sources</span>
3172 </span>
3173 </button>
3174 </div>
3175 </li>
3176 <li
3177 class="pf-v6-c-tree-view__list-item"
3178 role="treeitem"
3179 aria-selected="false"
3180 aria-expanded="false"
3181 tabindex="0"
3182 >
3183 <div class="pf-v6-c-tree-view__content">
3184 <button class="pf-v6-c-tree-view__node">
3185 <span class="pf-v6-c-tree-view__node-container">
3186 <span class="pf-v6-c-tree-view__node-toggle">
3187 <span class="pf-v6-c-tree-view__node-toggle-icon">
3188 <svg
3189 class="pf-v6-svg"
3190 fill="currentColor"
3191 viewBox="0 0 20 20"
3192 aria-hidden="true"
3193 role="img"
3194 width="1em"
3195 height="1em"
3196 >
3197 <path
3198 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
3199 />
3200 </svg>
3201 </span>
3202 </span>
3203 <span
3204 class="pf-v6-c-tree-view__node-text"
3205 >This is a really really really long folder name that overflows from the width of the container.</span>
3206 </span>
3207 </button>
3208
3209 <div class="pf-v6-c-tree-view__action">
3210 <button
3211 class="pf-v6-c-button pf-m-plain"
3212 type="button"
3213 aria-label="Actions"
3214 tabindex="-1"
3215 >
3216 <span class="pf-v6-c-button__icon">
3217 <svg
3218 class="pf-v6-svg"
3219 fill="currentColor"
3220 viewBox="0 0 32 32"
3221 aria-hidden="true"
3222 role="img"
3223 width="1em"
3224 height="1em"
3225 >
3226 <path
3227 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"
3228 />
3229 </svg>
3230 </span>
3231 </button>
3232 </div>
3233 </div>
3234 </li>
3235 </ul>
3236 </div>
3237
3238 ```
3239
3240 ### With non-expandable top level nodes
3241
3242 ```html
3243 <div class="pf-v6-c-tree-view">
3244 <ul
3245 class="pf-v6-c-tree-view__list"
3246 role="tree"
3247 aria-label="Tree View with non-expandable top level nodes example"
3248 >
3249 <li
3250 class="pf-v6-c-tree-view__list-item pf-m-expanded"
3251 role="treeitem"
3252 aria-selected="false"
3253 aria-expanded="true"
3254 tabindex="0"
3255 >
3256 <div class="pf-v6-c-tree-view__content">
3257 <button class="pf-v6-c-tree-view__node">
3258 <span class="pf-v6-c-tree-view__node-container">
3259 <span class="pf-v6-c-tree-view__node-toggle">
3260 <span class="pf-v6-c-tree-view__node-toggle-icon">
3261 <svg
3262 class="pf-v6-svg"
3263 fill="currentColor"
3264 viewBox="0 0 20 20"
3265 aria-hidden="true"
3266 role="img"
3267 width="1em"
3268 height="1em"
3269 >
3270 <path
3271 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
3272 />
3273 </svg>
3274 </span>
3275 </span>
3276 <span class="pf-v6-c-tree-view__node-text">Application launcher</span>
3277 </span>
3278 </button>
3279 </div>
3280 <ul class="pf-v6-c-tree-view__list" role="group">
3281 <li
3282 class="pf-v6-c-tree-view__list-item pf-m-expanded"
3283 role="treeitem"
3284 aria-selected="false"
3285 aria-expanded="true"
3286 tabindex="0"
3287 >
3288 <div class="pf-v6-c-tree-view__content">
3289 <button class="pf-v6-c-tree-view__node">
3290 <span class="pf-v6-c-tree-view__node-container">
3291 <span class="pf-v6-c-tree-view__node-toggle">
3292 <span class="pf-v6-c-tree-view__node-toggle-icon">
3293 <svg
3294 class="pf-v6-svg"
3295 fill="currentColor"
3296 viewBox="0 0 20 20"
3297 aria-hidden="true"
3298 role="img"
3299 width="1em"
3300 height="1em"
3301 >
3302 <path
3303 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
3304 />
3305 </svg>
3306 </span>
3307 </span>
3308 <span class="pf-v6-c-tree-view__node-text">Application 1</span>
3309 </span>
3310 </button>
3311 </div>
3312 <ul class="pf-v6-c-tree-view__list" role="group">
3313 <li
3314 class="pf-v6-c-tree-view__list-item"
3315 role="treeitem"
3316 aria-selected="false"
3317 tabindex="-1"
3318 >
3319 <div class="pf-v6-c-tree-view__content">
3320 <button class="pf-v6-c-tree-view__node">
3321 <span class="pf-v6-c-tree-view__node-container">
3322 <span class="pf-v6-c-tree-view__node-text">Settings</span>
3323 </span>
3324 </button>
3325 </div>
3326 </li>
3327 <li
3328 class="pf-v6-c-tree-view__list-item"
3329 role="treeitem"
3330 aria-selected="true"
3331 tabindex="-1"
3332 >
3333 <div class="pf-v6-c-tree-view__content">
3334 <button class="pf-v6-c-tree-view__node pf-m-current">
3335 <span class="pf-v6-c-tree-view__node-container">
3336 <span class="pf-v6-c-tree-view__node-text">Current</span>
3337 </span>
3338 </button>
3339 </div>
3340 </li>
3341 <li
3342 class="pf-v6-c-tree-view__list-item"
3343 role="treeitem"
3344 aria-selected="false"
3345 aria-expanded="false"
3346 tabindex="0"
3347 >
3348 <div class="pf-v6-c-tree-view__content">
3349 <button class="pf-v6-c-tree-view__node">
3350 <span class="pf-v6-c-tree-view__node-container">
3351 <span class="pf-v6-c-tree-view__node-toggle">
3352 <span class="pf-v6-c-tree-view__node-toggle-icon">
3353 <svg
3354 class="pf-v6-svg"
3355 fill="currentColor"
3356 viewBox="0 0 20 20"
3357 aria-hidden="true"
3358 role="img"
3359 width="1em"
3360 height="1em"
3361 >
3362 <path
3363 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
3364 />
3365 </svg>
3366 </span>
3367 </span>
3368 <span class="pf-v6-c-tree-view__node-text">Loader</span>
3369 </span>
3370 </button>
3371 </div>
3372 </li>
3373 </ul>
3374 </li>
3375 <li
3376 class="pf-v6-c-tree-view__list-item pf-m-expanded"
3377 role="treeitem"
3378 aria-selected="false"
3379 aria-expanded="true"
3380 tabindex="0"
3381 >
3382 <div class="pf-v6-c-tree-view__content">
3383 <button class="pf-v6-c-tree-view__node">
3384 <span class="pf-v6-c-tree-view__node-container">
3385 <span class="pf-v6-c-tree-view__node-toggle">
3386 <span class="pf-v6-c-tree-view__node-toggle-icon">
3387 <svg
3388 class="pf-v6-svg"
3389 fill="currentColor"
3390 viewBox="0 0 20 20"
3391 aria-hidden="true"
3392 role="img"
3393 width="1em"
3394 height="1em"
3395 >
3396 <path
3397 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
3398 />
3399 </svg>
3400 </span>
3401 </span>
3402 <span class="pf-v6-c-tree-view__node-text">Application 2</span>
3403 </span>
3404 </button>
3405 </div>
3406 <ul class="pf-v6-c-tree-view__list" role="group">
3407 <li
3408 class="pf-v6-c-tree-view__list-item"
3409 role="treeitem"
3410 aria-selected="false"
3411 tabindex="-1"
3412 >
3413 <div class="pf-v6-c-tree-view__content">
3414 <button class="pf-v6-c-tree-view__node">
3415 <span class="pf-v6-c-tree-view__node-container">
3416 <span class="pf-v6-c-tree-view__node-text">Settings</span>
3417 </span>
3418 </button>
3419 </div>
3420 </li>
3421 <li
3422 class="pf-v6-c-tree-view__list-item"
3423 role="treeitem"
3424 aria-selected="false"
3425 aria-expanded="false"
3426 tabindex="0"
3427 >
3428 <div class="pf-v6-c-tree-view__content">
3429 <button class="pf-v6-c-tree-view__node">
3430 <span class="pf-v6-c-tree-view__node-container">
3431 <span class="pf-v6-c-tree-view__node-toggle">
3432 <span class="pf-v6-c-tree-view__node-toggle-icon">
3433 <svg
3434 class="pf-v6-svg"
3435 fill="currentColor"
3436 viewBox="0 0 20 20"
3437 aria-hidden="true"
3438 role="img"
3439 width="1em"
3440 height="1em"
3441 >
3442 <path
3443 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
3444 />
3445 </svg>
3446 </span>
3447 </span>
3448 <span class="pf-v6-c-tree-view__node-text">Settings</span>
3449 </span>
3450 </button>
3451 </div>
3452 </li>
3453 <li
3454 class="pf-v6-c-tree-view__list-item pf-m-expanded"
3455 role="treeitem"
3456 aria-selected="false"
3457 aria-expanded="true"
3458 tabindex="0"
3459 >
3460 <div class="pf-v6-c-tree-view__content">
3461 <button class="pf-v6-c-tree-view__node">
3462 <span class="pf-v6-c-tree-view__node-container">
3463 <span class="pf-v6-c-tree-view__node-toggle">
3464 <span class="pf-v6-c-tree-view__node-toggle-icon">
3465 <svg
3466 class="pf-v6-svg"
3467 fill="currentColor"
3468 viewBox="0 0 20 20"
3469 aria-hidden="true"
3470 role="img"
3471 width="1em"
3472 height="1em"
3473 >
3474 <path
3475 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
3476 />
3477 </svg>
3478 </span>
3479 </span>
3480 <span class="pf-v6-c-tree-view__node-text">Loader</span>
3481 </span>
3482 </button>
3483 </div>
3484 <ul class="pf-v6-c-tree-view__list" role="group">
3485 <li
3486 class="pf-v6-c-tree-view__list-item"
3487 role="treeitem"
3488 aria-selected="false"
3489 aria-expanded="false"
3490 tabindex="0"
3491 >
3492 <div class="pf-v6-c-tree-view__content">
3493 <button class="pf-v6-c-tree-view__node">
3494 <span class="pf-v6-c-tree-view__node-container">
3495 <span class="pf-v6-c-tree-view__node-toggle">
3496 <span class="pf-v6-c-tree-view__node-toggle-icon">
3497 <svg
3498 class="pf-v6-svg"
3499 fill="currentColor"
3500 viewBox="0 0 20 20"
3501 aria-hidden="true"
3502 role="img"
3503 width="1em"
3504 height="1em"
3505 >
3506 <path
3507 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
3508 />
3509 </svg>
3510 </span>
3511 </span>
3512 <span class="pf-v6-c-tree-view__node-text">Loader app 1</span>
3513 </span>
3514 </button>
3515 </div>
3516 </li>
3517 <li
3518 class="pf-v6-c-tree-view__list-item"
3519 role="treeitem"
3520 aria-selected="false"
3521 tabindex="-1"
3522 >
3523 <div class="pf-v6-c-tree-view__content">
3524 <button class="pf-v6-c-tree-view__node">
3525 <span class="pf-v6-c-tree-view__node-container">
3526 <span class="pf-v6-c-tree-view__node-text">Loader app 2</span>
3527 </span>
3528 </button>
3529 </div>
3530 </li>
3531 <li
3532 class="pf-v6-c-tree-view__list-item"
3533 role="treeitem"
3534 aria-selected="false"
3535 tabindex="-1"
3536 >
3537 <div class="pf-v6-c-tree-view__content">
3538 <button class="pf-v6-c-tree-view__node">
3539 <span class="pf-v6-c-tree-view__node-container">
3540 <span class="pf-v6-c-tree-view__node-text">Loader app 3</span>
3541 </span>
3542 </button>
3543 </div>
3544 </li>
3545 </ul>
3546 </li>
3547 </ul>
3548 </li>
3549 </ul>
3550 </li>
3551 <li
3552 class="pf-v6-c-tree-view__list-item"
3553 role="treeitem"
3554 aria-selected="false"
3555 tabindex="-1"
3556 >
3557 <div class="pf-v6-c-tree-view__content">
3558 <button class="pf-v6-c-tree-view__node">
3559 <span class="pf-v6-c-tree-view__node-container">
3560 <span class="pf-v6-c-tree-view__node-text">Cost management</span>
3561 </span>
3562 </button>
3563 </div>
3564 </li>
3565 <li
3566 class="pf-v6-c-tree-view__list-item"
3567 role="treeitem"
3568 aria-selected="false"
3569 aria-expanded="false"
3570 tabindex="0"
3571 >
3572 <div class="pf-v6-c-tree-view__content">
3573 <button class="pf-v6-c-tree-view__node">
3574 <span class="pf-v6-c-tree-view__node-container">
3575 <span class="pf-v6-c-tree-view__node-toggle">
3576 <span class="pf-v6-c-tree-view__node-toggle-icon">
3577 <svg
3578 class="pf-v6-svg"
3579 fill="currentColor"
3580 viewBox="0 0 20 20"
3581 aria-hidden="true"
3582 role="img"
3583 width="1em"
3584 height="1em"
3585 >
3586 <path
3587 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
3588 />
3589 </svg>
3590 </span>
3591 </span>
3592 <span class="pf-v6-c-tree-view__node-text">Sources</span>
3593 </span>
3594 </button>
3595 </div>
3596 </li>
3597 <li
3598 class="pf-v6-c-tree-view__list-item"
3599 role="treeitem"
3600 aria-selected="false"
3601 tabindex="-1"
3602 >
3603 <div class="pf-v6-c-tree-view__content">
3604 <button class="pf-v6-c-tree-view__node">
3605 <span class="pf-v6-c-tree-view__node-container">
3606 <span
3607 class="pf-v6-c-tree-view__node-text"
3608 >This is a really really really long folder name that overflows from the width of the container.</span>
3609 </span>
3610 </button>
3611 </div>
3612 </li>
3613 </ul>
3614 </div>
3615
3616 ```
3617
3618 ### With selectable, expandable nodes
3619
3620 ```html
3621 <div class="pf-v6-c-tree-view">
3622 <ul
3623 class="pf-v6-c-tree-view__list"
3624 role="tree"
3625 aria-label="Tree View with selectable, expandable nodes example"
3626 >
3627 <li
3628 class="pf-v6-c-tree-view__list-item pf-m-expanded"
3629 role="treeitem"
3630 aria-selected="false"
3631 aria-expanded="true"
3632 tabindex="0"
3633 >
3634 <div class="pf-v6-c-tree-view__content">
3635 <div
3636 class="pf-v6-c-tree-view__node pf-m-selectable"
3637 tabindex="0"
3638 id="node-tree-view-selectable-expandable-1"
3639 aria-label="Select"
3640 aria-labelledby="node-tree-view-selectable-expandable-1 text-tree-view-selectable-expandable-1"
3641 >
3642 <span class="pf-v6-c-tree-view__node-container">
3643 <button
3644 class="pf-v6-c-tree-view__node-toggle"
3645 id="toggle-tree-view-selectable-expandable-1"
3646 aria-label="Toggle"
3647 aria-labelledby="toggle-tree-view-selectable-expandable-1 text-tree-view-selectable-expandable-1"
3648 >
3649 <span class="pf-v6-c-tree-view__node-toggle-icon">
3650 <svg
3651 class="pf-v6-svg"
3652 fill="currentColor"
3653 viewBox="0 0 20 20"
3654 aria-hidden="true"
3655 role="img"
3656 width="1em"
3657 height="1em"
3658 >
3659 <path
3660 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
3661 />
3662 </svg>
3663 </span>
3664 </button>
3665 <button
3666 class="pf-v6-c-tree-view__node-text"
3667 id="text-tree-view-selectable-expandable-1"
3668 >Application launcher</button>
3669 </span>
3670 </div>
3671 </div>
3672 <ul class="pf-v6-c-tree-view__list" role="group">
3673 <li
3674 class="pf-v6-c-tree-view__list-item pf-m-expanded"
3675 role="treeitem"
3676 aria-selected="false"
3677 aria-expanded="true"
3678 tabindex="0"
3679 >
3680 <div class="pf-v6-c-tree-view__content">
3681 <div
3682 class="pf-v6-c-tree-view__node pf-m-selectable"
3683 tabindex="0"
3684 id="node-tree-view-selectable-expandable-2"
3685 aria-label="Select"
3686 aria-labelledby="node-tree-view-selectable-expandable-2 text-tree-view-selectable-expandable-2"
3687 >
3688 <span class="pf-v6-c-tree-view__node-container">
3689 <button
3690 class="pf-v6-c-tree-view__node-toggle"
3691 id="toggle-tree-view-selectable-expandable-2"
3692 aria-label="Toggle"
3693 aria-labelledby="toggle-tree-view-selectable-expandable-2 text-tree-view-selectable-expandable-2"
3694 >
3695 <span class="pf-v6-c-tree-view__node-toggle-icon">
3696 <svg
3697 class="pf-v6-svg"
3698 fill="currentColor"
3699 viewBox="0 0 20 20"
3700 aria-hidden="true"
3701 role="img"
3702 width="1em"
3703 height="1em"
3704 >
3705 <path
3706 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
3707 />
3708 </svg>
3709 </span>
3710 </button>
3711 <button
3712 class="pf-v6-c-tree-view__node-text"
3713 id="text-tree-view-selectable-expandable-2"
3714 >Application 1</button>
3715 </span>
3716 </div>
3717 </div>
3718 <ul class="pf-v6-c-tree-view__list" role="group">
3719 <li
3720 class="pf-v6-c-tree-view__list-item"
3721 role="treeitem"
3722 aria-selected="false"
3723 tabindex="-1"
3724 >
3725 <div class="pf-v6-c-tree-view__content">
3726 <button class="pf-v6-c-tree-view__node">
3727 <span class="pf-v6-c-tree-view__node-container">
3728 <span class="pf-v6-c-tree-view__node-text">Settings</span>
3729 </span>
3730 </button>
3731 </div>
3732 </li>
3733 <li
3734 class="pf-v6-c-tree-view__list-item"
3735 role="treeitem"
3736 aria-selected="false"
3737 tabindex="-1"
3738 >
3739 <div class="pf-v6-c-tree-view__content">
3740 <button class="pf-v6-c-tree-view__node">
3741 <span class="pf-v6-c-tree-view__node-container">
3742 <span class="pf-v6-c-tree-view__node-text">Options</span>
3743 </span>
3744 </button>
3745 </div>
3746 </li>
3747 <li
3748 class="pf-v6-c-tree-view__list-item"
3749 role="treeitem"
3750 aria-selected="false"
3751 aria-expanded="false"
3752 tabindex="0"
3753 >
3754 <div class="pf-v6-c-tree-view__content">
3755 <div
3756 class="pf-v6-c-tree-view__node pf-m-selectable"
3757 tabindex="0"
3758 id="node-tree-view-selectable-expandable-3"
3759 aria-label="Select"
3760 aria-labelledby="node-tree-view-selectable-expandable-3 text-tree-view-selectable-expandable-3"
3761 >
3762 <span class="pf-v6-c-tree-view__node-container">
3763 <button
3764 class="pf-v6-c-tree-view__node-toggle pf-m-disabled"
3765 id="toggle-tree-view-selectable-expandable-3"
3766 aria-label="Toggle"
3767 aria-labelledby="toggle-tree-view-selectable-expandable-3 text-tree-view-selectable-expandable-3"
3768 disabled
3769 >
3770 <span class="pf-v6-c-tree-view__node-toggle-icon">
3771 <svg
3772 class="pf-v6-svg"
3773 fill="currentColor"
3774 viewBox="0 0 20 20"
3775 aria-hidden="true"
3776 role="img"
3777 width="1em"
3778 height="1em"
3779 >
3780 <path
3781 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
3782 />
3783 </svg>
3784 </span>
3785 </button>
3786 <button
3787 class="pf-v6-c-tree-view__node-text"
3788 id="text-tree-view-selectable-expandable-3"
3789 >Loader (toggle disabled)</button>
3790 </span>
3791 </div>
3792 </div>
3793 </li>
3794 </ul>
3795 </li>
3796 <li
3797 class="pf-v6-c-tree-view__list-item pf-m-expanded"
3798 role="treeitem"
3799 aria-selected="false"
3800 aria-expanded="true"
3801 tabindex="0"
3802 >
3803 <div class="pf-v6-c-tree-view__content">
3804 <div
3805 class="pf-v6-c-tree-view__node pf-m-selectable"
3806 tabindex="0"
3807 id="node-tree-view-selectable-expandable-4"
3808 aria-label="Select"
3809 aria-labelledby="node-tree-view-selectable-expandable-4 text-tree-view-selectable-expandable-4"
3810 >
3811 <span class="pf-v6-c-tree-view__node-container">
3812 <button
3813 class="pf-v6-c-tree-view__node-toggle"
3814 id="toggle-tree-view-selectable-expandable-4"
3815 aria-label="Toggle"
3816 aria-labelledby="toggle-tree-view-selectable-expandable-4 text-tree-view-selectable-expandable-4"
3817 >
3818 <span class="pf-v6-c-tree-view__node-toggle-icon">
3819 <svg
3820 class="pf-v6-svg"
3821 fill="currentColor"
3822 viewBox="0 0 20 20"
3823 aria-hidden="true"
3824 role="img"
3825 width="1em"
3826 height="1em"
3827 >
3828 <path
3829 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
3830 />
3831 </svg>
3832 </span>
3833 </button>
3834 <button
3835 class="pf-v6-c-tree-view__node-text"
3836 id="text-tree-view-selectable-expandable-4"
3837 >Application 2</button>
3838 </span>
3839 </div>
3840 </div>
3841 <ul class="pf-v6-c-tree-view__list" role="group">
3842 <li
3843 class="pf-v6-c-tree-view__list-item"
3844 role="treeitem"
3845 aria-selected="false"
3846 tabindex="-1"
3847 >
3848 <div class="pf-v6-c-tree-view__content">
3849 <button class="pf-v6-c-tree-view__node">
3850 <span class="pf-v6-c-tree-view__node-container">
3851 <span class="pf-v6-c-tree-view__node-text">Settings</span>
3852 </span>
3853 </button>
3854 </div>
3855 </li>
3856 <li
3857 class="pf-v6-c-tree-view__list-item"
3858 role="treeitem"
3859 aria-selected="false"
3860 aria-expanded="false"
3861 tabindex="0"
3862 >
3863 <div class="pf-v6-c-tree-view__content">
3864 <div
3865 class="pf-v6-c-tree-view__node pf-m-selectable"
3866 tabindex="0"
3867 id="node-tree-view-selectable-expandable-5"
3868 aria-label="Select"
3869 aria-labelledby="node-tree-view-selectable-expandable-5 text-tree-view-selectable-expandable-5"
3870 >
3871 <span class="pf-v6-c-tree-view__node-container">
3872 <button
3873 class="pf-v6-c-tree-view__node-toggle"
3874 id="toggle-tree-view-selectable-expandable-5"
3875 aria-label="Toggle"
3876 aria-labelledby="toggle-tree-view-selectable-expandable-5 text-tree-view-selectable-expandable-5"
3877 >
3878 <span class="pf-v6-c-tree-view__node-toggle-icon">
3879 <svg
3880 class="pf-v6-svg"
3881 fill="currentColor"
3882 viewBox="0 0 20 20"
3883 aria-hidden="true"
3884 role="img"
3885 width="1em"
3886 height="1em"
3887 >
3888 <path
3889 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
3890 />
3891 </svg>
3892 </span>
3893 </button>
3894 <button
3895 class="pf-v6-c-tree-view__node-text"
3896 id="text-tree-view-selectable-expandable-5"
3897 >Settings</button>
3898 </span>
3899 </div>
3900 </div>
3901 </li>
3902 <li
3903 class="pf-v6-c-tree-view__list-item pf-m-expanded"
3904 role="treeitem"
3905 aria-selected="false"
3906 aria-expanded="true"
3907 tabindex="0"
3908 >
3909 <div class="pf-v6-c-tree-view__content">
3910 <div
3911 class="pf-v6-c-tree-view__node pf-m-selectable pf-m-disabled"
3912 tabindex="0"
3913 id="node-tree-view-selectable-expandable-6"
3914 aria-label="Select"
3915 aria-labelledby="node-tree-view-selectable-expandable-6 text-tree-view-selectable-expandable-6"
3916 >
3917 <span class="pf-v6-c-tree-view__node-container">
3918 <button
3919 class="pf-v6-c-tree-view__node-toggle"
3920 id="toggle-tree-view-selectable-expandable-6"
3921 aria-label="Toggle"
3922 aria-labelledby="toggle-tree-view-selectable-expandable-6 text-tree-view-selectable-expandable-6"
3923 >
3924 <span class="pf-v6-c-tree-view__node-toggle-icon">
3925 <svg
3926 class="pf-v6-svg"
3927 fill="currentColor"
3928 viewBox="0 0 20 20"
3929 aria-hidden="true"
3930 role="img"
3931 width="1em"
3932 height="1em"
3933 >
3934 <path
3935 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
3936 />
3937 </svg>
3938 </span>
3939 </button>
3940 <button
3941 class="pf-v6-c-tree-view__node-text"
3942 id="text-tree-view-selectable-expandable-6"
3943 >Loader (disabled item but toggle is enabled)</button>
3944 </span>
3945 </div>
3946 </div>
3947 <ul class="pf-v6-c-tree-view__list" role="group">
3948 <li
3949 class="pf-v6-c-tree-view__list-item"
3950 role="treeitem"
3951 aria-selected="true"
3952 aria-expanded="false"
3953 tabindex="0"
3954 >
3955 <div class="pf-v6-c-tree-view__content">
3956 <div
3957 class="pf-v6-c-tree-view__node pf-m-selectable pf-m-current pf-m-disabled"
3958 tabindex="0"
3959 id="node-tree-view-selectable-expandable-7"
3960 aria-label="Select"
3961 aria-labelledby="node-tree-view-selectable-expandable-7 text-tree-view-selectable-expandable-7"
3962 >
3963 <span class="pf-v6-c-tree-view__node-container">
3964 <button
3965 class="pf-v6-c-tree-view__node-toggle pf-m-disabled"
3966 id="toggle-tree-view-selectable-expandable-7"
3967 aria-label="Toggle"
3968 aria-labelledby="toggle-tree-view-selectable-expandable-7 text-tree-view-selectable-expandable-7"
3969 disabled
3970 >
3971 <span class="pf-v6-c-tree-view__node-toggle-icon">
3972 <svg
3973 class="pf-v6-svg"
3974 fill="currentColor"
3975 viewBox="0 0 20 20"
3976 aria-hidden="true"
3977 role="img"
3978 width="1em"
3979 height="1em"
3980 >
3981 <path
3982 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
3983 />
3984 </svg>
3985 </span>
3986 </button>
3987 <button
3988 class="pf-v6-c-tree-view__node-text"
3989 id="text-tree-view-selectable-expandable-7"
3990 >Loader app 1 (disabled item and toggle)</button>
3991 </span>
3992 </div>
3993 </div>
3994 </li>
3995 <li
3996 class="pf-v6-c-tree-view__list-item"
3997 role="treeitem"
3998 aria-selected="false"
3999 tabindex="-1"
4000 >
4001 <div class="pf-v6-c-tree-view__content">
4002 <button class="pf-v6-c-tree-view__node">
4003 <span class="pf-v6-c-tree-view__node-container">
4004 <span class="pf-v6-c-tree-view__node-text">Loader app 2</span>
4005 </span>
4006 </button>
4007 </div>
4008 </li>
4009 <li
4010 class="pf-v6-c-tree-view__list-item"
4011 role="treeitem"
4012 aria-selected="false"
4013 tabindex="-1"
4014 >
4015 <div class="pf-v6-c-tree-view__content">
4016 <button class="pf-v6-c-tree-view__node">
4017 <span class="pf-v6-c-tree-view__node-container">
4018 <span class="pf-v6-c-tree-view__node-text">Loader app 3</span>
4019 </span>
4020 </button>
4021 </div>
4022 </li>
4023 </ul>
4024 </li>
4025 </ul>
4026 </li>
4027 </ul>
4028 </li>
4029 <li
4030 class="pf-v6-c-tree-view__list-item"
4031 role="treeitem"
4032 aria-selected="false"
4033 aria-expanded="false"
4034 tabindex="0"
4035 >
4036 <div class="pf-v6-c-tree-view__content">
4037 <div
4038 class="pf-v6-c-tree-view__node pf-m-selectable"
4039 tabindex="0"
4040 id="node-tree-view-selectable-expandable-8"
4041 aria-label="Select"
4042 aria-labelledby="node-tree-view-selectable-expandable-8 text-tree-view-selectable-expandable-8"
4043 >
4044 <span class="pf-v6-c-tree-view__node-container">
4045 <button
4046 class="pf-v6-c-tree-view__node-toggle"
4047 id="toggle-tree-view-selectable-expandable-8"
4048 aria-label="Toggle"
4049 aria-labelledby="toggle-tree-view-selectable-expandable-8 text-tree-view-selectable-expandable-8"
4050 >
4051 <span class="pf-v6-c-tree-view__node-toggle-icon">
4052 <svg
4053 class="pf-v6-svg"
4054 fill="currentColor"
4055 viewBox="0 0 20 20"
4056 aria-hidden="true"
4057 role="img"
4058 width="1em"
4059 height="1em"
4060 >
4061 <path
4062 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
4063 />
4064 </svg>
4065 </span>
4066 </button>
4067 <button
4068 class="pf-v6-c-tree-view__node-text"
4069 id="text-tree-view-selectable-expandable-8"
4070 >Cost management</button>
4071 </span>
4072 </div>
4073 </div>
4074 </li>
4075 <li
4076 class="pf-v6-c-tree-view__list-item"
4077 role="treeitem"
4078 aria-selected="false"
4079 aria-expanded="false"
4080 tabindex="0"
4081 >
4082 <div class="pf-v6-c-tree-view__content">
4083 <div
4084 class="pf-v6-c-tree-view__node pf-m-selectable"
4085 tabindex="0"
4086 id="node-tree-view-selectable-expandable-9"
4087 aria-label="Select"
4088 aria-labelledby="node-tree-view-selectable-expandable-9 text-tree-view-selectable-expandable-9"
4089 >
4090 <span class="pf-v6-c-tree-view__node-container">
4091 <button
4092 class="pf-v6-c-tree-view__node-toggle"
4093 id="toggle-tree-view-selectable-expandable-9"
4094 aria-label="Toggle"
4095 aria-labelledby="toggle-tree-view-selectable-expandable-9 text-tree-view-selectable-expandable-9"
4096 >
4097 <span class="pf-v6-c-tree-view__node-toggle-icon">
4098 <svg
4099 class="pf-v6-svg"
4100 fill="currentColor"
4101 viewBox="0 0 20 20"
4102 aria-hidden="true"
4103 role="img"
4104 width="1em"
4105 height="1em"
4106 >
4107 <path
4108 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
4109 />
4110 </svg>
4111 </span>
4112 </button>
4113 <button
4114 class="pf-v6-c-tree-view__node-text"
4115 id="text-tree-view-selectable-expandable-9"
4116 >Sources</button>
4117 </span>
4118 </div>
4119 </div>
4120 </li>
4121 <li
4122 class="pf-v6-c-tree-view__list-item"
4123 role="treeitem"
4124 aria-selected="false"
4125 aria-expanded="false"
4126 tabindex="0"
4127 >
4128 <div class="pf-v6-c-tree-view__content">
4129 <div
4130 class="pf-v6-c-tree-view__node pf-m-selectable"
4131 tabindex="0"
4132 id="node-tree-view-selectable-expandable-10"
4133 aria-label="Select"
4134 aria-labelledby="node-tree-view-selectable-expandable-10 text-tree-view-selectable-expandable-10"
4135 >
4136 <span class="pf-v6-c-tree-view__node-container">
4137 <button
4138 class="pf-v6-c-tree-view__node-toggle"
4139 id="toggle-tree-view-selectable-expandable-10"
4140 aria-label="Toggle"
4141 aria-labelledby="toggle-tree-view-selectable-expandable-10 text-tree-view-selectable-expandable-10"
4142 >
4143 <span class="pf-v6-c-tree-view__node-toggle-icon">
4144 <svg
4145 class="pf-v6-svg"
4146 fill="currentColor"
4147 viewBox="0 0 20 20"
4148 aria-hidden="true"
4149 role="img"
4150 width="1em"
4151 height="1em"
4152 >
4153 <path
4154 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
4155 />
4156 </svg>
4157 </span>
4158 </button>
4159 <button
4160 class="pf-v6-c-tree-view__node-text"
4161 id="text-tree-view-selectable-expandable-10"
4162 >This is a really really really long folder name that overflows from the width of the container.</button>
4163 </span>
4164 </div>
4165 </div>
4166 </li>
4167 </ul>
4168 </div>
4169
4170 ```
4171
4172 ### Guides
4173
4174 ```html
4175 <div class="pf-v6-c-tree-view pf-m-guides">
4176 <ul
4177 class="pf-v6-c-tree-view__list"
4178 role="tree"
4179 aria-label="Tree View guides example"
4180 >
4181 <li
4182 class="pf-v6-c-tree-view__list-item pf-m-expanded"
4183 role="treeitem"
4184 aria-selected="false"
4185 aria-expanded="true"
4186 tabindex="0"
4187 >
4188 <div class="pf-v6-c-tree-view__content">
4189 <button class="pf-v6-c-tree-view__node">
4190 <span class="pf-v6-c-tree-view__node-container">
4191 <span class="pf-v6-c-tree-view__node-toggle">
4192 <span class="pf-v6-c-tree-view__node-toggle-icon">
4193 <svg
4194 class="pf-v6-svg"
4195 fill="currentColor"
4196 viewBox="0 0 20 20"
4197 aria-hidden="true"
4198 role="img"
4199 width="1em"
4200 height="1em"
4201 >
4202 <path
4203 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
4204 />
4205 </svg>
4206 </span>
4207 </span>
4208 <span class="pf-v6-c-tree-view__node-text">Application launcher</span>
4209 </span>
4210 </button>
4211 </div>
4212 <ul class="pf-v6-c-tree-view__list" role="group">
4213 <li
4214 class="pf-v6-c-tree-view__list-item pf-m-expanded"
4215 role="treeitem"
4216 aria-selected="false"
4217 aria-expanded="true"
4218 tabindex="0"
4219 >
4220 <div class="pf-v6-c-tree-view__content">
4221 <button class="pf-v6-c-tree-view__node">
4222 <span class="pf-v6-c-tree-view__node-container">
4223 <span class="pf-v6-c-tree-view__node-toggle">
4224 <span class="pf-v6-c-tree-view__node-toggle-icon">
4225 <svg
4226 class="pf-v6-svg"
4227 fill="currentColor"
4228 viewBox="0 0 20 20"
4229 aria-hidden="true"
4230 role="img"
4231 width="1em"
4232 height="1em"
4233 >
4234 <path
4235 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
4236 />
4237 </svg>
4238 </span>
4239 </span>
4240 <span class="pf-v6-c-tree-view__node-text">Application 1</span>
4241 </span>
4242 </button>
4243 </div>
4244 <ul class="pf-v6-c-tree-view__list" role="group">
4245 <li
4246 class="pf-v6-c-tree-view__list-item"
4247 role="treeitem"
4248 aria-selected="false"
4249 tabindex="-1"
4250 >
4251 <div class="pf-v6-c-tree-view__content">
4252 <button class="pf-v6-c-tree-view__node">
4253 <span class="pf-v6-c-tree-view__node-container">
4254 <span class="pf-v6-c-tree-view__node-text">Settings</span>
4255 </span>
4256 </button>
4257 </div>
4258 </li>
4259 <li
4260 class="pf-v6-c-tree-view__list-item"
4261 role="treeitem"
4262 aria-selected="true"
4263 tabindex="-1"
4264 >
4265 <div class="pf-v6-c-tree-view__content">
4266 <button class="pf-v6-c-tree-view__node pf-m-current">
4267 <span class="pf-v6-c-tree-view__node-container">
4268 <span class="pf-v6-c-tree-view__node-text">Current</span>
4269 </span>
4270 </button>
4271 </div>
4272 </li>
4273 <li
4274 class="pf-v6-c-tree-view__list-item"
4275 role="treeitem"
4276 aria-selected="false"
4277 aria-expanded="false"
4278 tabindex="0"
4279 >
4280 <div class="pf-v6-c-tree-view__content">
4281 <button class="pf-v6-c-tree-view__node">
4282 <span class="pf-v6-c-tree-view__node-container">
4283 <span class="pf-v6-c-tree-view__node-toggle">
4284 <span class="pf-v6-c-tree-view__node-toggle-icon">
4285 <svg
4286 class="pf-v6-svg"
4287 fill="currentColor"
4288 viewBox="0 0 20 20"
4289 aria-hidden="true"
4290 role="img"
4291 width="1em"
4292 height="1em"
4293 >
4294 <path
4295 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
4296 />
4297 </svg>
4298 </span>
4299 </span>
4300 <span class="pf-v6-c-tree-view__node-text">Loader</span>
4301 </span>
4302 </button>
4303 </div>
4304 </li>
4305 </ul>
4306 </li>
4307 <li
4308 class="pf-v6-c-tree-view__list-item pf-m-expanded"
4309 role="treeitem"
4310 aria-selected="false"
4311 aria-expanded="true"
4312 tabindex="0"
4313 >
4314 <div class="pf-v6-c-tree-view__content">
4315 <button class="pf-v6-c-tree-view__node">
4316 <span class="pf-v6-c-tree-view__node-container">
4317 <span class="pf-v6-c-tree-view__node-toggle">
4318 <span class="pf-v6-c-tree-view__node-toggle-icon">
4319 <svg
4320 class="pf-v6-svg"
4321 fill="currentColor"
4322 viewBox="0 0 20 20"
4323 aria-hidden="true"
4324 role="img"
4325 width="1em"
4326 height="1em"
4327 >
4328 <path
4329 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
4330 />
4331 </svg>
4332 </span>
4333 </span>
4334 <span class="pf-v6-c-tree-view__node-text">Application 2</span>
4335 </span>
4336 </button>
4337 </div>
4338 <ul class="pf-v6-c-tree-view__list" role="group">
4339 <li
4340 class="pf-v6-c-tree-view__list-item"
4341 role="treeitem"
4342 aria-selected="false"
4343 tabindex="-1"
4344 >
4345 <div class="pf-v6-c-tree-view__content">
4346 <button class="pf-v6-c-tree-view__node">
4347 <span class="pf-v6-c-tree-view__node-container">
4348 <span class="pf-v6-c-tree-view__node-text">Settings</span>
4349 </span>
4350 </button>
4351 </div>
4352 </li>
4353 <li
4354 class="pf-v6-c-tree-view__list-item"
4355 role="treeitem"
4356 aria-selected="false"
4357 aria-expanded="false"
4358 tabindex="0"
4359 >
4360 <div class="pf-v6-c-tree-view__content">
4361 <button class="pf-v6-c-tree-view__node">
4362 <span class="pf-v6-c-tree-view__node-container">
4363 <span class="pf-v6-c-tree-view__node-toggle">
4364 <span class="pf-v6-c-tree-view__node-toggle-icon">
4365 <svg
4366 class="pf-v6-svg"
4367 fill="currentColor"
4368 viewBox="0 0 20 20"
4369 aria-hidden="true"
4370 role="img"
4371 width="1em"
4372 height="1em"
4373 >
4374 <path
4375 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
4376 />
4377 </svg>
4378 </span>
4379 </span>
4380 <span class="pf-v6-c-tree-view__node-text">Settings</span>
4381 </span>
4382 </button>
4383 </div>
4384 </li>
4385 <li
4386 class="pf-v6-c-tree-view__list-item pf-m-expanded"
4387 role="treeitem"
4388 aria-selected="false"
4389 aria-expanded="true"
4390 tabindex="0"
4391 >
4392 <div class="pf-v6-c-tree-view__content">
4393 <button class="pf-v6-c-tree-view__node">
4394 <span class="pf-v6-c-tree-view__node-container">
4395 <span class="pf-v6-c-tree-view__node-toggle">
4396 <span class="pf-v6-c-tree-view__node-toggle-icon">
4397 <svg
4398 class="pf-v6-svg"
4399 fill="currentColor"
4400 viewBox="0 0 20 20"
4401 aria-hidden="true"
4402 role="img"
4403 width="1em"
4404 height="1em"
4405 >
4406 <path
4407 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
4408 />
4409 </svg>
4410 </span>
4411 </span>
4412 <span class="pf-v6-c-tree-view__node-text">Loader</span>
4413 </span>
4414 </button>
4415 </div>
4416 <ul class="pf-v6-c-tree-view__list" role="group">
4417 <li
4418 class="pf-v6-c-tree-view__list-item"
4419 role="treeitem"
4420 aria-selected="false"
4421 aria-expanded="false"
4422 tabindex="0"
4423 >
4424 <div class="pf-v6-c-tree-view__content">
4425 <button class="pf-v6-c-tree-view__node">
4426 <span class="pf-v6-c-tree-view__node-container">
4427 <span class="pf-v6-c-tree-view__node-toggle">
4428 <span class="pf-v6-c-tree-view__node-toggle-icon">
4429 <svg
4430 class="pf-v6-svg"
4431 fill="currentColor"
4432 viewBox="0 0 20 20"
4433 aria-hidden="true"
4434 role="img"
4435 width="1em"
4436 height="1em"
4437 >
4438 <path
4439 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
4440 />
4441 </svg>
4442 </span>
4443 </span>
4444 <span class="pf-v6-c-tree-view__node-text">Loader app 1</span>
4445 </span>
4446 </button>
4447 </div>
4448 </li>
4449 <li
4450 class="pf-v6-c-tree-view__list-item"
4451 role="treeitem"
4452 aria-selected="false"
4453 tabindex="-1"
4454 >
4455 <div class="pf-v6-c-tree-view__content">
4456 <button class="pf-v6-c-tree-view__node">
4457 <span class="pf-v6-c-tree-view__node-container">
4458 <span class="pf-v6-c-tree-view__node-text">Loader app 2</span>
4459 </span>
4460 </button>
4461 </div>
4462 </li>
4463 <li
4464 class="pf-v6-c-tree-view__list-item"
4465 role="treeitem"
4466 aria-selected="false"
4467 tabindex="-1"
4468 >
4469 <div class="pf-v6-c-tree-view__content">
4470 <button class="pf-v6-c-tree-view__node">
4471 <span class="pf-v6-c-tree-view__node-container">
4472 <span class="pf-v6-c-tree-view__node-text">Loader app 3</span>
4473 </span>
4474 </button>
4475 </div>
4476 </li>
4477 </ul>
4478 </li>
4479 </ul>
4480 </li>
4481 </ul>
4482 </li>
4483 <li
4484 class="pf-v6-c-tree-view__list-item"
4485 role="treeitem"
4486 aria-selected="false"
4487 aria-expanded="false"
4488 tabindex="0"
4489 >
4490 <div class="pf-v6-c-tree-view__content">
4491 <button class="pf-v6-c-tree-view__node">
4492 <span class="pf-v6-c-tree-view__node-container">
4493 <span class="pf-v6-c-tree-view__node-toggle">
4494 <span class="pf-v6-c-tree-view__node-toggle-icon">
4495 <svg
4496 class="pf-v6-svg"
4497 fill="currentColor"
4498 viewBox="0 0 20 20"
4499 aria-hidden="true"
4500 role="img"
4501 width="1em"
4502 height="1em"
4503 >
4504 <path
4505 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
4506 />
4507 </svg>
4508 </span>
4509 </span>
4510 <span class="pf-v6-c-tree-view__node-text">Cost management</span>
4511 </span>
4512 </button>
4513 </div>
4514 </li>
4515 <li
4516 class="pf-v6-c-tree-view__list-item"
4517 role="treeitem"
4518 aria-selected="false"
4519 aria-expanded="false"
4520 tabindex="0"
4521 >
4522 <div class="pf-v6-c-tree-view__content">
4523 <button class="pf-v6-c-tree-view__node">
4524 <span class="pf-v6-c-tree-view__node-container">
4525 <span class="pf-v6-c-tree-view__node-toggle">
4526 <span class="pf-v6-c-tree-view__node-toggle-icon">
4527 <svg
4528 class="pf-v6-svg"
4529 fill="currentColor"
4530 viewBox="0 0 20 20"
4531 aria-hidden="true"
4532 role="img"
4533 width="1em"
4534 height="1em"
4535 >
4536 <path
4537 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
4538 />
4539 </svg>
4540 </span>
4541 </span>
4542 <span class="pf-v6-c-tree-view__node-text">Sources</span>
4543 </span>
4544 </button>
4545 </div>
4546 </li>
4547 <li
4548 class="pf-v6-c-tree-view__list-item"
4549 role="treeitem"
4550 aria-selected="false"
4551 aria-expanded="false"
4552 tabindex="0"
4553 >
4554 <div class="pf-v6-c-tree-view__content">
4555 <button class="pf-v6-c-tree-view__node">
4556 <span class="pf-v6-c-tree-view__node-container">
4557 <span class="pf-v6-c-tree-view__node-toggle">
4558 <span class="pf-v6-c-tree-view__node-toggle-icon">
4559 <svg
4560 class="pf-v6-svg"
4561 fill="currentColor"
4562 viewBox="0 0 20 20"
4563 aria-hidden="true"
4564 role="img"
4565 width="1em"
4566 height="1em"
4567 >
4568 <path
4569 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
4570 />
4571 </svg>
4572 </span>
4573 </span>
4574 <span
4575 class="pf-v6-c-tree-view__node-text"
4576 >This is a really really really long folder name that overflows from the width of the container.</span>
4577 </span>
4578 </button>
4579 </div>
4580 </li>
4581 </ul>
4582 </div>
4583
4584 ```
4585
4586 ### Compact
4587
4588 ```html
4589 <div class="pf-v6-c-tree-view pf-m-compact">
4590 <ul
4591 class="pf-v6-c-tree-view__list"
4592 role="tree"
4593 aria-label="Tree View compact example"
4594 >
4595 <li
4596 class="pf-v6-c-tree-view__list-item"
4597 role="treeitem"
4598 aria-selected="false"
4599 tabindex="-1"
4600 >
4601 <div class="pf-v6-c-tree-view__content">
4602 <button class="pf-v6-c-tree-view__node">
4603 <span class="pf-v6-c-tree-view__node-container">
4604 <span class="pf-v6-c-tree-view__node-content">
4605 <span class="pf-v6-c-tree-view__node-title">apiVersion</span>
4606 <span
4607 class="pf-v6-c-tree-view__node-text"
4608 >APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value and may reject unrecognized values.</span>
4609 </span>
4610 </span>
4611 </button>
4612 </div>
4613 </li>
4614 <li
4615 class="pf-v6-c-tree-view__list-item"
4616 role="treeitem"
4617 aria-selected="false"
4618 tabindex="-1"
4619 >
4620 <div class="pf-v6-c-tree-view__content">
4621 <button class="pf-v6-c-tree-view__node">
4622 <span class="pf-v6-c-tree-view__node-container">
4623 <span class="pf-v6-c-tree-view__node-content">
4624 <span class="pf-v6-c-tree-view__node-title">kind</span>
4625 <span
4626 class="pf-v6-c-tree-view__node-text"
4627 >Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated is CamelCase. More info:</span>
4628 </span>
4629 </span>
4630 </button>
4631 </div>
4632 </li>
4633 <li
4634 class="pf-v6-c-tree-view__list-item"
4635 role="treeitem"
4636 aria-selected="false"
4637 tabindex="-1"
4638 >
4639 <div class="pf-v6-c-tree-view__content">
4640 <button class="pf-v6-c-tree-view__node pf-m-disabled">
4641 <span class="pf-v6-c-tree-view__node-container">
4642 <span class="pf-v6-c-tree-view__node-content">
4643 <span
4644 class="pf-v6-c-tree-view__node-title"
4645 >metadata (disabled item)</span>
4646 <span
4647 class="pf-v6-c-tree-view__node-text"
4648 >Standard object metadata</span>
4649 </span>
4650 </span>
4651 </button>
4652 </div>
4653 </li>
4654 <li
4655 class="pf-v6-c-tree-view__list-item pf-m-expanded"
4656 role="treeitem"
4657 aria-selected="false"
4658 aria-expanded="true"
4659 tabindex="0"
4660 >
4661 <div class="pf-v6-c-tree-view__content">
4662 <button class="pf-v6-c-tree-view__node">
4663 <span class="pf-v6-c-tree-view__node-container">
4664 <span class="pf-v6-c-tree-view__node-toggle">
4665 <span class="pf-v6-c-tree-view__node-toggle-icon">
4666 <svg
4667 class="pf-v6-svg"
4668 fill="currentColor"
4669 viewBox="0 0 20 20"
4670 aria-hidden="true"
4671 role="img"
4672 width="1em"
4673 height="1em"
4674 >
4675 <path
4676 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
4677 />
4678 </svg>
4679 </span>
4680 </span>
4681 <span class="pf-v6-c-tree-view__node-content">
4682 <span class="pf-v6-c-tree-view__node-title">spec</span>
4683 <span
4684 class="pf-v6-c-tree-view__node-text"
4685 >Specification of the desired behavior of deployment.</span>
4686 </span>
4687 </span>
4688 </button>
4689 </div>
4690 <ul class="pf-v6-c-tree-view__list" role="group">
4691 <li
4692 class="pf-v6-c-tree-view__list-item"
4693 role="treeitem"
4694 aria-selected="false"
4695 tabindex="-1"
4696 >
4697 <div class="pf-v6-c-tree-view__content">
4698 <button class="pf-v6-c-tree-view__node">
4699 <span class="pf-v6-c-tree-view__node-container">
4700 <span class="pf-v6-c-tree-view__node-content">
4701 <span class="pf-v6-c-tree-view__node-title">minReadySeconds</span>
4702 <span
4703 class="pf-v6-c-tree-view__node-text"
4704 >Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Default to 0 (pod will be considered available as soon as it is ready).</span>
4705 </span>
4706 </span>
4707 </button>
4708 </div>
4709 </li>
4710 <li
4711 class="pf-v6-c-tree-view__list-item"
4712 role="treeitem"
4713 aria-selected="false"
4714 tabindex="-1"
4715 >
4716 <div class="pf-v6-c-tree-view__content">
4717 <button class="pf-v6-c-tree-view__node">
4718 <span class="pf-v6-c-tree-view__node-container">
4719 <span class="pf-v6-c-tree-view__node-content">
4720 <span class="pf-v6-c-tree-view__node-title">paused</span>
4721 <span
4722 class="pf-v6-c-tree-view__node-text"
4723 >Indicates that the deployment is paused</span>
4724 </span>
4725 </span>
4726 </button>
4727 </div>
4728 </li>
4729 <li
4730 class="pf-v6-c-tree-view__list-item"
4731 role="treeitem"
4732 aria-selected="false"
4733 tabindex="-1"
4734 >
4735 <div class="pf-v6-c-tree-view__content">
4736 <button class="pf-v6-c-tree-view__node">
4737 <span class="pf-v6-c-tree-view__node-container">
4738 <span class="pf-v6-c-tree-view__node-content">
4739 <span
4740 class="pf-v6-c-tree-view__node-title"
4741 >progressDeadlineSeconds</span>
4742 <span
4743 class="pf-v6-c-tree-view__node-text"
4744 >The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that the progress will not de estimated during the time a deployment is paused. Defaults to 600s.</span>
4745 </span>
4746 </span>
4747 </button>
4748 </div>
4749 </li>
4750 <li
4751 class="pf-v6-c-tree-view__list-item"
4752 role="treeitem"
4753 aria-selected="false"
4754 tabindex="-1"
4755 >
4756 <div class="pf-v6-c-tree-view__content">
4757 <button class="pf-v6-c-tree-view__node">
4758 <span class="pf-v6-c-tree-view__node-container">
4759 <span class="pf-v6-c-tree-view__node-content">
4760 <span class="pf-v6-c-tree-view__node-title">replicas</span>
4761 <span
4762 class="pf-v6-c-tree-view__node-text"
4763 >Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.</span>
4764 </span>
4765 </span>
4766 </button>
4767 </div>
4768 </li>
4769 <li
4770 class="pf-v6-c-tree-view__list-item"
4771 role="treeitem"
4772 aria-selected="false"
4773 tabindex="-1"
4774 >
4775 <div class="pf-v6-c-tree-view__content">
4776 <button class="pf-v6-c-tree-view__node">
4777 <span class="pf-v6-c-tree-view__node-container">
4778 <span class="pf-v6-c-tree-view__node-content">
4779 <span
4780 class="pf-v6-c-tree-view__node-title"
4781 >revisionHistoryLimit</span>
4782 <span
4783 class="pf-v6-c-tree-view__node-text"
4784 >The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.</span>
4785 </span>
4786 </span>
4787 </button>
4788 </div>
4789 </li>
4790 <li
4791 class="pf-v6-c-tree-view__list-item pf-m-expanded"
4792 role="treeitem"
4793 aria-selected="false"
4794 aria-expanded="true"
4795 tabindex="0"
4796 >
4797 <div class="pf-v6-c-tree-view__content">
4798 <button class="pf-v6-c-tree-view__node">
4799 <span class="pf-v6-c-tree-view__node-container">
4800 <span class="pf-v6-c-tree-view__node-toggle">
4801 <span class="pf-v6-c-tree-view__node-toggle-icon">
4802 <svg
4803 class="pf-v6-svg"
4804 fill="currentColor"
4805 viewBox="0 0 20 20"
4806 aria-hidden="true"
4807 role="img"
4808 width="1em"
4809 height="1em"
4810 >
4811 <path
4812 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
4813 />
4814 </svg>
4815 </span>
4816 </span>
4817 <span class="pf-v6-c-tree-view__node-content">
4818 <span class="pf-v6-c-tree-view__node-title">Selector</span>
4819 <span
4820 class="pf-v6-c-tree-view__node-text"
4821 >Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment</span>
4822 </span>
4823 </span>
4824 </button>
4825 </div>
4826 <ul class="pf-v6-c-tree-view__list" role="group">
4827 <li
4828 class="pf-v6-c-tree-view__list-item pf-m-expanded"
4829 role="treeitem"
4830 aria-selected="false"
4831 aria-expanded="true"
4832 tabindex="0"
4833 >
4834 <div class="pf-v6-c-tree-view__content">
4835 <button class="pf-v6-c-tree-view__node pf-m-disabled">
4836 <span class="pf-v6-c-tree-view__node-container">
4837 <span class="pf-v6-c-tree-view__node-toggle pf-m-disabled">
4838 <span class="pf-v6-c-tree-view__node-toggle-icon">
4839 <svg
4840 class="pf-v6-svg"
4841 fill="currentColor"
4842 viewBox="0 0 20 20"
4843 aria-hidden="true"
4844 role="img"
4845 width="1em"
4846 height="1em"
4847 >
4848 <path
4849 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
4850 />
4851 </svg>
4852 </span>
4853 </span>
4854 <span class="pf-v6-c-tree-view__node-content">
4855 <span
4856 class="pf-v6-c-tree-view__node-title"
4857 >matchExpressions (disabled item and toggle)</span>
4858 <span
4859 class="pf-v6-c-tree-view__node-text"
4860 >matchExpressions is a list of the label selector requirements. The requirements and ANDed.</span>
4861 </span>
4862 </span>
4863 </button>
4864 </div>
4865 <ul class="pf-v6-c-tree-view__list" role="group">
4866 <li
4867 class="pf-v6-c-tree-view__list-item"
4868 role="treeitem"
4869 aria-selected="false"
4870 tabindex="-1"
4871 >
4872 <div class="pf-v6-c-tree-view__content">
4873 <button class="pf-v6-c-tree-view__node">
4874 <span class="pf-v6-c-tree-view__node-container">
4875 <span class="pf-v6-c-tree-view__node-content">
4876 <span
4877 class="pf-v6-c-tree-view__node-title"
4878 >matchLabels</span>
4879 <span
4880 class="pf-v6-c-tree-view__node-text"
4881 >matchExpressions is a list of the label selector requirements. The requirements and ANDed.</span>
4882 </span>
4883 </span>
4884 </button>
4885 </div>
4886 </li>
4887 </ul>
4888 </li>
4889 <li
4890 class="pf-v6-c-tree-view__list-item"
4891 role="treeitem"
4892 aria-selected="false"
4893 tabindex="-1"
4894 >
4895 <div class="pf-v6-c-tree-view__content">
4896 <button class="pf-v6-c-tree-view__node">
4897 <span class="pf-v6-c-tree-view__node-container">
4898 <span class="pf-v6-c-tree-view__node-content">
4899 <span class="pf-v6-c-tree-view__node-title">matchLabels</span>
4900 <span
4901 class="pf-v6-c-tree-view__node-text"
4902 >Map of {key.value} pairs. A single {key.value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In" and the values array contains only "value". The requirements are ANDed.</span>
4903 </span>
4904 </span>
4905 </button>
4906 </div>
4907 </li>
4908 </ul>
4909 </li>
4910 <li
4911 class="pf-v6-c-tree-view__list-item"
4912 role="treeitem"
4913 aria-selected="false"
4914 tabindex="-1"
4915 >
4916 <div class="pf-v6-c-tree-view__content">
4917 <button class="pf-v6-c-tree-view__node">
4918 <span class="pf-v6-c-tree-view__node-container">
4919 <span class="pf-v6-c-tree-view__node-content">
4920 <span class="pf-v6-c-tree-view__node-title">matchLabels</span>
4921 <span
4922 class="pf-v6-c-tree-view__node-text"
4923 >Map of {key.value} pairs. A single {key.value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In" and the values array contains only "value". The requirements are ANDed.</span>
4924 </span>
4925 </span>
4926 </button>
4927 </div>
4928 </li>
4929 </ul>
4930 </li>
4931 </ul>
4932 </div>
4933
4934 ```
4935
4936 ### Compact, no background
4937
4938 ```html
4939 <div class="pf-v6-c-tree-view pf-m-compact pf-m-no-background">
4940 <ul
4941 class="pf-v6-c-tree-view__list"
4942 role="tree"
4943 aria-label="Tree View compact no background example"
4944 >
4945 <li
4946 class="pf-v6-c-tree-view__list-item"
4947 role="treeitem"
4948 aria-selected="false"
4949 tabindex="-1"
4950 >
4951 <div class="pf-v6-c-tree-view__content">
4952 <button class="pf-v6-c-tree-view__node">
4953 <span class="pf-v6-c-tree-view__node-container">
4954 <span class="pf-v6-c-tree-view__node-content">
4955 <span class="pf-v6-c-tree-view__node-title">apiVersion</span>
4956 <span
4957 class="pf-v6-c-tree-view__node-text"
4958 >APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value and may reject unrecognized values.</span>
4959 </span>
4960 </span>
4961 </button>
4962 </div>
4963 </li>
4964 <li
4965 class="pf-v6-c-tree-view__list-item"
4966 role="treeitem"
4967 aria-selected="false"
4968 tabindex="-1"
4969 >
4970 <div class="pf-v6-c-tree-view__content">
4971 <button class="pf-v6-c-tree-view__node">
4972 <span class="pf-v6-c-tree-view__node-container">
4973 <span class="pf-v6-c-tree-view__node-content">
4974 <span class="pf-v6-c-tree-view__node-title">kind</span>
4975 <span
4976 class="pf-v6-c-tree-view__node-text"
4977 >Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated is CamelCase. More info:</span>
4978 </span>
4979 </span>
4980 </button>
4981 </div>
4982 </li>
4983 <li
4984 class="pf-v6-c-tree-view__list-item"
4985 role="treeitem"
4986 aria-selected="false"
4987 tabindex="-1"
4988 >
4989 <div class="pf-v6-c-tree-view__content">
4990 <button class="pf-v6-c-tree-view__node pf-m-disabled">
4991 <span class="pf-v6-c-tree-view__node-container">
4992 <span class="pf-v6-c-tree-view__node-content">
4993 <span
4994 class="pf-v6-c-tree-view__node-title"
4995 >metadata (disabled item)</span>
4996 <span
4997 class="pf-v6-c-tree-view__node-text"
4998 >Standard object metadata</span>
4999 </span>
5000 </span>
5001 </button>
5002 </div>
5003 </li>
5004 <li
5005 class="pf-v6-c-tree-view__list-item pf-m-expanded"
5006 role="treeitem"
5007 aria-selected="false"
5008 aria-expanded="true"
5009 tabindex="0"
5010 >
5011 <div class="pf-v6-c-tree-view__content">
5012 <button class="pf-v6-c-tree-view__node">
5013 <span class="pf-v6-c-tree-view__node-container">
5014 <span class="pf-v6-c-tree-view__node-toggle">
5015 <span class="pf-v6-c-tree-view__node-toggle-icon">
5016 <svg
5017 class="pf-v6-svg"
5018 fill="currentColor"
5019 viewBox="0 0 20 20"
5020 aria-hidden="true"
5021 role="img"
5022 width="1em"
5023 height="1em"
5024 >
5025 <path
5026 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
5027 />
5028 </svg>
5029 </span>
5030 </span>
5031 <span class="pf-v6-c-tree-view__node-content">
5032 <span class="pf-v6-c-tree-view__node-title">spec</span>
5033 <span
5034 class="pf-v6-c-tree-view__node-text"
5035 >Specification of the desired behavior of deployment.</span>
5036 </span>
5037 </span>
5038 </button>
5039 </div>
5040 <ul class="pf-v6-c-tree-view__list" role="group">
5041 <li
5042 class="pf-v6-c-tree-view__list-item"
5043 role="treeitem"
5044 aria-selected="false"
5045 tabindex="-1"
5046 >
5047 <div class="pf-v6-c-tree-view__content">
5048 <button class="pf-v6-c-tree-view__node">
5049 <span class="pf-v6-c-tree-view__node-container">
5050 <span class="pf-v6-c-tree-view__node-content">
5051 <span class="pf-v6-c-tree-view__node-title">minReadySeconds</span>
5052 <span
5053 class="pf-v6-c-tree-view__node-text"
5054 >Minimum number of seconds for which a newly created pod should be ready without any of its container crashing, for it to be considered available. Default to 0 (pod will be considered available as soon as it is ready).</span>
5055 </span>
5056 </span>
5057 </button>
5058 </div>
5059 </li>
5060 <li
5061 class="pf-v6-c-tree-view__list-item"
5062 role="treeitem"
5063 aria-selected="false"
5064 tabindex="-1"
5065 >
5066 <div class="pf-v6-c-tree-view__content">
5067 <button class="pf-v6-c-tree-view__node">
5068 <span class="pf-v6-c-tree-view__node-container">
5069 <span class="pf-v6-c-tree-view__node-content">
5070 <span class="pf-v6-c-tree-view__node-title">paused</span>
5071 <span
5072 class="pf-v6-c-tree-view__node-text"
5073 >Indicates that the deployment is paused</span>
5074 </span>
5075 </span>
5076 </button>
5077 </div>
5078 </li>
5079 <li
5080 class="pf-v6-c-tree-view__list-item"
5081 role="treeitem"
5082 aria-selected="false"
5083 tabindex="-1"
5084 >
5085 <div class="pf-v6-c-tree-view__content">
5086 <button class="pf-v6-c-tree-view__node">
5087 <span class="pf-v6-c-tree-view__node-container">
5088 <span class="pf-v6-c-tree-view__node-content">
5089 <span
5090 class="pf-v6-c-tree-view__node-title"
5091 >progressDeadlineSeconds</span>
5092 <span
5093 class="pf-v6-c-tree-view__node-text"
5094 >The maximum time in seconds for a deployment to make progress before it is considered to be failed. The deployment controller will continue to process failed deployments and a condition with a ProgressDeadlineExceeded reason will be surfaced in the deployment status. Note that the progress will not de estimated during the time a deployment is paused. Defaults to 600s.</span>
5095 </span>
5096 </span>
5097 </button>
5098 </div>
5099 </li>
5100 <li
5101 class="pf-v6-c-tree-view__list-item"
5102 role="treeitem"
5103 aria-selected="false"
5104 tabindex="-1"
5105 >
5106 <div class="pf-v6-c-tree-view__content">
5107 <button class="pf-v6-c-tree-view__node">
5108 <span class="pf-v6-c-tree-view__node-container">
5109 <span class="pf-v6-c-tree-view__node-content">
5110 <span class="pf-v6-c-tree-view__node-title">replicas</span>
5111 <span
5112 class="pf-v6-c-tree-view__node-text"
5113 >Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1.</span>
5114 </span>
5115 </span>
5116 </button>
5117 </div>
5118 </li>
5119 <li
5120 class="pf-v6-c-tree-view__list-item"
5121 role="treeitem"
5122 aria-selected="false"
5123 tabindex="-1"
5124 >
5125 <div class="pf-v6-c-tree-view__content">
5126 <button class="pf-v6-c-tree-view__node">
5127 <span class="pf-v6-c-tree-view__node-container">
5128 <span class="pf-v6-c-tree-view__node-content">
5129 <span
5130 class="pf-v6-c-tree-view__node-title"
5131 >revisionHistoryLimit</span>
5132 <span
5133 class="pf-v6-c-tree-view__node-text"
5134 >The number of old ReplicaSets to retain to allow rollback. This is a pointer to distinguish between explicit zero and not specified. Defaults to 10.</span>
5135 </span>
5136 </span>
5137 </button>
5138 </div>
5139 </li>
5140 <li
5141 class="pf-v6-c-tree-view__list-item pf-m-expanded"
5142 role="treeitem"
5143 aria-selected="false"
5144 aria-expanded="true"
5145 tabindex="0"
5146 >
5147 <div class="pf-v6-c-tree-view__content">
5148 <button class="pf-v6-c-tree-view__node">
5149 <span class="pf-v6-c-tree-view__node-container">
5150 <span class="pf-v6-c-tree-view__node-toggle">
5151 <span class="pf-v6-c-tree-view__node-toggle-icon">
5152 <svg
5153 class="pf-v6-svg"
5154 fill="currentColor"
5155 viewBox="0 0 20 20"
5156 aria-hidden="true"
5157 role="img"
5158 width="1em"
5159 height="1em"
5160 >
5161 <path
5162 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
5163 />
5164 </svg>
5165 </span>
5166 </span>
5167 <span class="pf-v6-c-tree-view__node-content">
5168 <span class="pf-v6-c-tree-view__node-title">Selector</span>
5169 <span
5170 class="pf-v6-c-tree-view__node-text"
5171 >Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment</span>
5172 </span>
5173 </span>
5174 </button>
5175 </div>
5176 <ul class="pf-v6-c-tree-view__list" role="group">
5177 <li
5178 class="pf-v6-c-tree-view__list-item pf-m-expanded"
5179 role="treeitem"
5180 aria-selected="false"
5181 aria-expanded="true"
5182 tabindex="0"
5183 >
5184 <div class="pf-v6-c-tree-view__content">
5185 <button class="pf-v6-c-tree-view__node pf-m-disabled">
5186 <span class="pf-v6-c-tree-view__node-container">
5187 <span class="pf-v6-c-tree-view__node-toggle pf-m-disabled">
5188 <span class="pf-v6-c-tree-view__node-toggle-icon">
5189 <svg
5190 class="pf-v6-svg"
5191 fill="currentColor"
5192 viewBox="0 0 20 20"
5193 aria-hidden="true"
5194 role="img"
5195 width="1em"
5196 height="1em"
5197 >
5198 <path
5199 d="M14.35 8.94 6.71 1.29l-.02-.02c-.4-.38-1.03-.37-1.41.02-.38.4-.37 1.03.02 1.41l7.29 7.29-7.29 7.29a1.003 1.003 0 0 0 1.42 1.42l7.65-7.65c.59-.59.59-1.54 0-2.12Z"
5200 />
5201 </svg>
5202 </span>
5203 </span>
5204 <span class="pf-v6-c-tree-view__node-content">
5205 <span
5206 class="pf-v6-c-tree-view__node-title"
5207 >matchExpressions (disabled item and toggle)</span>
5208 <span
5209 class="pf-v6-c-tree-view__node-text"
5210 >matchExpressions is a list of the label selector requirements. The requirements and ANDed.</span>
5211 </span>
5212 </span>
5213 </button>
5214 </div>
5215 <ul class="pf-v6-c-tree-view__list" role="group">
5216 <li
5217 class="pf-v6-c-tree-view__list-item"
5218 role="treeitem"
5219 aria-selected="false"
5220 tabindex="-1"
5221 >
5222 <div class="pf-v6-c-tree-view__content">
5223 <button class="pf-v6-c-tree-view__node">
5224 <span class="pf-v6-c-tree-view__node-container">
5225 <span class="pf-v6-c-tree-view__node-content">
5226 <span
5227 class="pf-v6-c-tree-view__node-title"
5228 >matchLabels</span>
5229 <span
5230 class="pf-v6-c-tree-view__node-text"
5231 >matchExpressions is a list of the label selector requirements. The requirements and ANDed.</span>
5232 </span>
5233 </span>
5234 </button>
5235 </div>
5236 </li>
5237 </ul>
5238 </li>
5239 <li
5240 class="pf-v6-c-tree-view__list-item"
5241 role="treeitem"
5242 aria-selected="false"
5243 tabindex="-1"
5244 >
5245 <div class="pf-v6-c-tree-view__content">
5246 <button class="pf-v6-c-tree-view__node">
5247 <span class="pf-v6-c-tree-view__node-container">
5248 <span class="pf-v6-c-tree-view__node-content">
5249 <span class="pf-v6-c-tree-view__node-title">matchLabels</span>
5250 <span
5251 class="pf-v6-c-tree-view__node-text"
5252 >Map of {key.value} pairs. A single {key.value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In" and the values array contains only "value". The requirements are ANDed.</span>
5253 </span>
5254 </span>
5255 </button>
5256 </div>
5257 </li>
5258 </ul>
5259 </li>
5260 <li
5261 class="pf-v6-c-tree-view__list-item"
5262 role="treeitem"
5263 aria-selected="false"
5264 tabindex="-1"
5265 >
5266 <div class="pf-v6-c-tree-view__content">
5267 <button class="pf-v6-c-tree-view__node">
5268 <span class="pf-v6-c-tree-view__node-container">
5269 <span class="pf-v6-c-tree-view__node-content">
5270 <span class="pf-v6-c-tree-view__node-title">matchLabels</span>
5271 <span
5272 class="pf-v6-c-tree-view__node-text"
5273 >Map of {key.value} pairs. A single {key.value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In" and the values array contains only "value". The requirements are ANDed.</span>
5274 </span>
5275 </span>
5276 </button>
5277 </div>
5278 </li>
5279 </ul>
5280 </li>
5281 </ul>
5282 </div>
5283
5284 ```
5285
5286 ## Documentation
5287
5288 ### Usage
5289
5290 | Class | Applied | Outcome |
5291 | -- | -- | -- |
5292 | `.pf-v6-c-tree-view` | `<div>` | Initiates the tree view container. **Required** |
5293 | `.pf-v6-c-tree-view__list` | `<ul>` | Initiates a tree view list. **Required** |
5294 | `.pf-v6-c-tree-view__list-item` | `<li>` | Initiates a tree view list item. **Required** |
5295 | `.pf-v6-c-tree-view__content` | `<div>` | Initiates a tree view node. **Required** |
5296 | `.pf-v6-c-tree-view__node` | `<button>`, `<label>` | Initiates a tree view node. **Required** |
5297 | `.pf-v6-c-tree-view__node-container` | `<span>` | Initiates a tree view node container. **Required for compact variant** |
5298 | `.pf-v6-c-tree-view__node-content` | `<span>` | Initiates a tree view node content container used to stack elements. |
5299 | `.pf-v6-c-tree-view__node-count` | `<span>` | Initiates a tree view node count. |
5300 | `.pf-v6-c-tree-view__node-toggle` | `<span>`, `<button>` | Initiates a tree view toggle. |
5301 | `.pf-v6-c-tree-view__node-toggle-icon` | `<span>` | Initiates a tree view toggle icon. |
5302 | `.pf-v6-c-tree-view__node-title` | `<span>` | Initiates a tree view node title. |
5303 | `.pf-v6-c-tree-view__node-text` | `<span>`, `<button>` | Initiates tree view text. **Note:** Use a `<button>` when the node is expandable and selectable. |
5304 | `.pf-v6-c-tree-view__node-icon` | `<span>` | Initiates a tree view icon. |
5305 | `.pf-v6-c-tree-view__node-check` | `<span>` | Initiates a tree view check. |
5306 | `.pf-v6-c-tree-view__action` | `<div>` | Initiates a tree view action wrapper. |
5307 | `.pf-v6-c-tree-view__search` | `<div>` | Initiates a tree view search wrapper. |
5308 | `.pf-m-guides` | `.pf-v6-c-tree-view` | Modifies the tree view to the guides presentation. |
5309 | `.pf-m-compact` | `.pf-v6-c-tree-view` | Modifies the tree view to the compact presentation. |
5310 | `.pf-m-no-background` | `.pf-v6-c-tree-view.pf-m-compact` | Modifies the tree view compact variant node containers to have a transparent background. |
5311 | `.pf-m-current` | `.pf-v6-c-tree-view__node` | Modifies the tree view node to be current. |
5312 | `.pf-m-selectable` | `.pf-v6-c-tree-view__node` | For use on nodes that are expandable and selectable, when the default click action on the node selects it instead of expanding it. |
5313 | `.pf-m-disabled` | `.pf-v6-c-tree-view__node` | Modifies the tree view node to display as disabled. |
5314 | `.pf-m-disabled` | `.pf-v6-c-tree-view__node-toggle` | Modifies the tree view node toggle to display as disabled. |
5315 | `.pf-m-truncate` | `.pf-v6-c-tree-view`, `.pf-v6-c-tree-view__node-title`, `.pf-v6-c-tree-view__node-text` | Modifies the tree view title or text to truncate. |