@exhaustive-ui/mcp 0.0.0-stage → 3.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/LICENSE +23 -0
  2. package/README.md +167 -2
  3. package/data/components/accordion.md +421 -0
  4. package/data/components/animateonscroll.md +163 -0
  5. package/data/components/autocomplete.md +1077 -0
  6. package/data/components/autofocus.md +38 -0
  7. package/data/components/avatar.md +417 -0
  8. package/data/components/badge.md +234 -0
  9. package/data/components/blockui.md +108 -0
  10. package/data/components/breadcrumb.md +178 -0
  11. package/data/components/button.md +774 -0
  12. package/data/components/card.md +138 -0
  13. package/data/components/carousel.md +440 -0
  14. package/data/components/cascadeselect.md +1387 -0
  15. package/data/components/chart.md +1178 -0
  16. package/data/components/checkbox.md +529 -0
  17. package/data/components/chip.md +180 -0
  18. package/data/components/colorpicker.md +301 -0
  19. package/data/components/confirmdialog.md +287 -0
  20. package/data/components/confirmpopup.md +417 -0
  21. package/data/components/contextmenu.md +491 -0
  22. package/data/components/dataview.md +600 -0
  23. package/data/components/datepicker.md +1262 -0
  24. package/data/components/dialog.md +622 -0
  25. package/data/components/divider.md +250 -0
  26. package/data/components/dock.md +500 -0
  27. package/data/components/dragdrop.md +285 -0
  28. package/data/components/drawer.md +510 -0
  29. package/data/components/dynamicdialog.md +109 -0
  30. package/data/components/editor.md +291 -0
  31. package/data/components/fieldset.md +182 -0
  32. package/data/components/fileupload.md +430 -0
  33. package/data/components/floatlabel.md +155 -0
  34. package/data/components/fluid.md +72 -0
  35. package/data/components/focustrap.md +65 -0
  36. package/data/components/galleria.md +627 -0
  37. package/data/components/iconfield.md +246 -0
  38. package/data/components/iftalabel.md +105 -0
  39. package/data/components/imagecompare.md +97 -0
  40. package/data/components/inplace.md +233 -0
  41. package/data/components/inputgroup.md +306 -0
  42. package/data/components/inputmask.md +518 -0
  43. package/data/components/inputnumber.md +675 -0
  44. package/data/components/inputotp.md +336 -0
  45. package/data/components/inputtext.md +488 -0
  46. package/data/components/keyfilter.md +85 -0
  47. package/data/components/knob.md +462 -0
  48. package/data/components/listbox.md +798 -0
  49. package/data/components/llms.md +28 -0
  50. package/data/components/megamenu.md +587 -0
  51. package/data/components/menu.md +483 -0
  52. package/data/components/menubar.md +462 -0
  53. package/data/components/message.md +449 -0
  54. package/data/components/metergroup.md +241 -0
  55. package/data/components/multiselect.md +1047 -0
  56. package/data/components/orderlist.md +342 -0
  57. package/data/components/organizationchart.md +197 -0
  58. package/data/components/overlay.md +217 -0
  59. package/data/components/paginator.md +314 -0
  60. package/data/components/panel.md +214 -0
  61. package/data/components/panelmenu.md +699 -0
  62. package/data/components/password.md +570 -0
  63. package/data/components/picklist.md +420 -0
  64. package/data/components/popover.md +378 -0
  65. package/data/components/progressbar.md +181 -0
  66. package/data/components/progressspinner.md +91 -0
  67. package/data/components/radiobutton.md +377 -0
  68. package/data/components/rating.md +312 -0
  69. package/data/components/ripple.md +89 -0
  70. package/data/components/scroller.md +122 -0
  71. package/data/components/scrollpanel.md +149 -0
  72. package/data/components/scrolltop.md +105 -0
  73. package/data/components/select.md +1206 -0
  74. package/data/components/selectbutton.md +356 -0
  75. package/data/components/skeleton.md +242 -0
  76. package/data/components/slider.md +337 -0
  77. package/data/components/speeddial.md +589 -0
  78. package/data/components/splitbutton.md +945 -0
  79. package/data/components/splitter.md +196 -0
  80. package/data/components/stepper.md +411 -0
  81. package/data/components/styleclass.md +126 -0
  82. package/data/components/table.md +4557 -0
  83. package/data/components/tabs.md +467 -0
  84. package/data/components/tag.md +200 -0
  85. package/data/components/terminal.md +118 -0
  86. package/data/components/textarea.md +416 -0
  87. package/data/components/tieredmenu.md +578 -0
  88. package/data/components/timeline.md +310 -0
  89. package/data/components/toast.md +596 -0
  90. package/data/components/togglebutton.md +356 -0
  91. package/data/components/toggleswitch.md +285 -0
  92. package/data/components/toolbar.md +182 -0
  93. package/data/components/tooltip.md +211 -0
  94. package/data/components/tree.md +746 -0
  95. package/data/components/treeselect.md +912 -0
  96. package/data/components/treetable.md +2814 -0
  97. package/data/components.json +43751 -0
  98. package/data/llms-full.txt +47433 -0
  99. package/data/llms.txt +121 -0
  100. package/data/manifest.json +46513 -0
  101. package/data/pages/accessibility.md +28 -0
  102. package/data/pages/animations.md +28 -0
  103. package/data/pages/configuration.md +210 -0
  104. package/data/pages/contribution.md +20 -0
  105. package/data/pages/customicons.md +20 -0
  106. package/data/pages/faq.md +20 -0
  107. package/data/pages/icons.md +66 -0
  108. package/data/pages/installation.md +71 -0
  109. package/data/pages/llms.md +61 -0
  110. package/data/pages/passthrough.md +32 -0
  111. package/data/pages/philosophy.md +28 -0
  112. package/data/pages/primeflex.md +20 -0
  113. package/data/pages/rtl.md +12 -0
  114. package/data/pages/styled.md +132 -0
  115. package/data/pages/tailwind.md +40 -0
  116. package/data/pages/unstyled.md +39 -0
  117. package/data/snapshot.json +9 -0
  118. package/dist/index.d.mts +448 -0
  119. package/dist/index.mjs +2501 -0
  120. package/dist/index.mjs.map +1 -0
  121. package/package.json +67 -3
@@ -0,0 +1,578 @@
1
+ # Angular TieredMenu Component
2
+
3
+ TieredMenu displays submenus in nested overlays.
4
+
5
+ ## Accessibility
6
+
7
+ Screen Reader TieredMenu component uses the menubar role with aria-orientation set to "vertical" and the value to describe the menu can either be provided with aria-labelledby or aria-label props. Each list item has a presentation role whereas anchor elements have a menuitem role with aria-label referring to the label of the item and aria-disabled defined if the item is disabled. A submenu within a TieredMenu uses the menu role with an aria-labelledby defined as the id of the submenu root menuitem label. In addition, menuitems that open a submenu have aria-haspopup , aria-expanded and aria-controls to define the relation between the item and the submenu. In popup mode, the component implicitly manages the aria-expanded , aria-haspopup and aria-controls attributes of the target element to define the relation between the target and the popup. Keyboard Support Key Function tab Add focus to the first item if focus moves in to the menu. If the focus is already within the menu, focus moves to the next focusable item in the page tab sequence. shift + tab Add focus to the last item if focus moves in to the menu. If the focus is already within the menu, focus moves to the previous focusable item in the page tab sequence. enter If menuitem has a submenu, toggles the visibility of the submenu otherwise activates the menuitem and closes all open overlays. space If menuitem has a submenu, toggles the visibility of the submenu otherwise activates the menuitem and closes all open overlays. escape If focus is inside a popup submenu, closes the submenu and moves focus to the root item of the closed submenu. down arrow Moves focus to the next menuitem within the submenu. up arrow Moves focus to the previous menuitem within the submenu. right arrow Opens a submenu if there is one available and moves focus to the first item. left arrow Closes a submenu and moves focus to the root item of the closed submenu. home Moves focus to the first menuitem within the submenu. end Moves focus to the last menuitem within the submenu.
8
+
9
+ ## Basic
10
+
11
+ TieredMenu requires a collection of menuitems as its model .
12
+
13
+ ```typescript
14
+ import { Component, OnInit } from '@angular/core';
15
+ import { TieredMenuModule } from '@exhaustive-ui/core/tieredmenu';
16
+ import { MenuItem } from '@exhaustive-ui/core/api';
17
+
18
+ @Component({
19
+ template: `
20
+ <div class="card flex justify-center">
21
+ <p-tieredmenu [model]="items" />
22
+ </div>
23
+ `,
24
+ standalone: true,
25
+ imports: [TieredMenuModule]
26
+ })
27
+ export class TieredmenuBasicDemo implements OnInit {
28
+ items: MenuItem[] | undefined;
29
+
30
+ ngOnInit() {
31
+ this.items = [
32
+ {
33
+ label: 'File',
34
+ icon: 'pi pi-file',
35
+ items: [
36
+ {
37
+ label: 'New',
38
+ icon: 'pi pi-plus',
39
+ items: [
40
+ {
41
+ label: 'Document',
42
+ icon: 'pi pi-file'
43
+ },
44
+ {
45
+ label: 'Image',
46
+ icon: 'pi pi-image'
47
+ },
48
+ {
49
+ label: 'Video',
50
+ icon: 'pi pi-video'
51
+ }
52
+ ]
53
+ },
54
+ {
55
+ label: 'Open',
56
+ icon: 'pi pi-folder-open'
57
+ },
58
+ {
59
+ label: 'Print',
60
+ icon: 'pi pi-print'
61
+ }
62
+ ]
63
+ },
64
+ {
65
+ label: 'Edit',
66
+ icon: 'pi pi-file-edit',
67
+ items: [
68
+ {
69
+ label: 'Copy',
70
+ icon: 'pi pi-copy'
71
+ },
72
+ {
73
+ label: 'Delete',
74
+ icon: 'pi pi-times'
75
+ }
76
+ ]
77
+ },
78
+ {
79
+ label: 'Search',
80
+ icon: 'pi pi-search'
81
+ },
82
+ {
83
+ separator: true
84
+ },
85
+ {
86
+ label: 'Share',
87
+ icon: 'pi pi-share-alt',
88
+ items: [
89
+ {
90
+ label: 'Slack',
91
+ icon: 'pi pi-slack'
92
+ },
93
+ {
94
+ label: 'Whatsapp',
95
+ icon: 'pi pi-whatsapp'
96
+ }
97
+ ]
98
+ }
99
+ ];
100
+ }
101
+ }
102
+ ```
103
+
104
+ ## Command
105
+
106
+ The command property defines the callback to run when an item is activated by click or a key event.
107
+
108
+ ```typescript
109
+ import { Component, OnInit, inject } from '@angular/core';
110
+ import { TieredMenuModule } from '@exhaustive-ui/core/tieredmenu';
111
+ import { ToastModule } from '@exhaustive-ui/core/toast';
112
+ import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
113
+
114
+ @Component({
115
+ template: `
116
+ <div class="card flex justify-center">
117
+ <p-toast />
118
+ <p-tieredmenu [model]="items" />
119
+ </div>
120
+ `,
121
+ standalone: true,
122
+ imports: [TieredMenuModule, ToastModule],
123
+ providers: [MessageService]
124
+ })
125
+ export class TieredmenuCommandDemo implements OnInit {
126
+ private messageService = inject(MessageService);
127
+ items: MenuItem[] | undefined;
128
+
129
+ ngOnInit() {
130
+ this.items = [
131
+ {
132
+ label: 'File',
133
+ icon: 'pi pi-file',
134
+ items: [
135
+ {
136
+ label: 'New',
137
+ icon: 'pi pi-plus',
138
+ command: () => {
139
+ this.messageService.add({ severity: 'success', summary: 'Success', detail: 'File created', life: 3000 });
140
+ }
141
+ },
142
+ {
143
+ label: 'Print',
144
+ icon: 'pi pi-print',
145
+ command: () => {
146
+ this.messageService.add({ severity: 'error', summary: 'Error', detail: 'No printer connected', life: 3000 });
147
+ }
148
+ }
149
+ ]
150
+ },
151
+ {
152
+ label: 'Search',
153
+ icon: 'pi pi-search',
154
+ command: () => {
155
+ this.messageService.add({ severity: 'warn', summary: 'Search Results', detail: 'No results found', life: 3000 });
156
+ }
157
+ },
158
+ {
159
+ separator: true
160
+ },
161
+ {
162
+ label: 'Sync',
163
+ icon: 'pi pi-cloud',
164
+ items: [
165
+ {
166
+ label: 'Import',
167
+ icon: 'pi pi-cloud-download',
168
+ command: () => {
169
+ this.messageService.add({
170
+ severity: 'info',
171
+ summary: 'Downloads',
172
+ detail: 'Downloaded from cloud',
173
+ life: 3000
174
+ });
175
+ }
176
+ },
177
+ {
178
+ label: 'Export',
179
+ icon: 'pi pi-cloud-upload',
180
+ command: () => {
181
+ this.messageService.add({ severity: 'info', summary: 'Shared', detail: 'Exported to cloud', life: 3000 });
182
+ }
183
+ }
184
+ ]
185
+ }
186
+ ];
187
+ }
188
+ }
189
+ ```
190
+
191
+ ## Popup
192
+
193
+ Popup mode is enabled by adding popup property and calling toggle method with an event of the target.
194
+
195
+ ```typescript
196
+ import { Component, OnInit } from '@angular/core';
197
+ import { ButtonModule } from '@exhaustive-ui/core/button';
198
+ import { TieredMenuModule } from '@exhaustive-ui/core/tieredmenu';
199
+ import { MenuItem } from '@exhaustive-ui/core/api';
200
+
201
+ @Component({
202
+ template: `
203
+ <div class="card flex justify-center">
204
+ <p-button label="Toggle" (click)="menu.toggle($event)" />
205
+ <p-tieredmenu #menu [model]="items" [popup]="true" />
206
+ </div>
207
+ `,
208
+ standalone: true,
209
+ imports: [ButtonModule, TieredMenuModule]
210
+ })
211
+ export class TieredmenuPopupDemo implements OnInit {
212
+ items: MenuItem[] | undefined;
213
+
214
+ ngOnInit() {
215
+ this.items = [
216
+ {
217
+ label: 'File',
218
+ icon: 'pi pi-file',
219
+ items: [
220
+ {
221
+ label: 'New',
222
+ icon: 'pi pi-plus',
223
+ items: [
224
+ {
225
+ label: 'Document',
226
+ icon: 'pi pi-file'
227
+ },
228
+ {
229
+ label: 'Image',
230
+ icon: 'pi pi-image'
231
+ },
232
+ {
233
+ label: 'Video',
234
+ icon: 'pi pi-video'
235
+ }
236
+ ]
237
+ },
238
+ {
239
+ label: 'Open',
240
+ icon: 'pi pi-folder-open'
241
+ },
242
+ {
243
+ label: 'Print',
244
+ icon: 'pi pi-print'
245
+ }
246
+ ]
247
+ },
248
+ {
249
+ label: 'Edit',
250
+ icon: 'pi pi-file-edit',
251
+ items: [
252
+ {
253
+ label: 'Copy',
254
+ icon: 'pi pi-copy'
255
+ },
256
+ {
257
+ label: 'Delete',
258
+ icon: 'pi pi-times'
259
+ }
260
+ ]
261
+ },
262
+ {
263
+ label: 'Search',
264
+ icon: 'pi pi-search'
265
+ },
266
+ {
267
+ separator: true
268
+ },
269
+ {
270
+ label: 'Share',
271
+ icon: 'pi pi-share-alt',
272
+ items: [
273
+ {
274
+ label: 'Slack',
275
+ icon: 'pi pi-slack'
276
+ },
277
+ {
278
+ label: 'Whatsapp',
279
+ icon: 'pi pi-whatsapp'
280
+ }
281
+ ]
282
+ }
283
+ ];
284
+ }
285
+ }
286
+ ```
287
+
288
+ ## Router
289
+
290
+ Menu items support navigation via routerLink, programmatic routing using commands, or external URLs.
291
+
292
+ ```typescript
293
+ import { Component, OnInit } from '@angular/core';
294
+ import { TieredMenuModule } from '@exhaustive-ui/core/tieredmenu';
295
+ import { MenuItem } from '@exhaustive-ui/core/api';
296
+
297
+ @Component({
298
+ template: `
299
+ <div class="card flex justify-center">
300
+ <p-tieredmenu [model]="items" />
301
+ </div>
302
+ `,
303
+ standalone: true,
304
+ imports: [TieredMenuModule]
305
+ })
306
+ export class TieredmenuRouterDemo implements OnInit {
307
+ items: MenuItem[] | undefined;
308
+
309
+ ngOnInit() {
310
+ this.items = [
311
+ {
312
+ label: 'Router',
313
+ icon: 'pi pi-palette',
314
+ items: [
315
+ {
316
+ label: 'Theming',
317
+ routerLink: '/theming'
318
+ }
319
+ ]
320
+ },
321
+ {
322
+ label: 'Programmatic',
323
+ icon: 'pi pi-link',
324
+ command: () => {
325
+ this.router.navigate(['/installation']);
326
+ }
327
+ },
328
+ {
329
+ label: 'External',
330
+ icon: 'pi pi-home',
331
+ items: [
332
+ {
333
+ label: 'Angular',
334
+ url: 'https://angular.dev/'
335
+ },
336
+ {
337
+ label: 'Vite.js',
338
+ url: 'https://vitejs.dev/'
339
+ }
340
+ ]
341
+ }
342
+ ];
343
+ }
344
+ }
345
+ ```
346
+
347
+ ## Template
348
+
349
+ TieredMenu offers item customization with the item template that receives the menuitem instance from the model as a parameter.
350
+
351
+ ```typescript
352
+ import { Component, OnInit } from '@angular/core';
353
+ import { BadgeModule } from '@exhaustive-ui/core/badge';
354
+ import { TieredMenuModule } from '@exhaustive-ui/core/tieredmenu';
355
+ import { RippleModule } from '@exhaustive-ui/core/ripple';
356
+ import { MenuItem } from '@exhaustive-ui/core/api';
357
+
358
+ @Component({
359
+ template: `
360
+ <div class="card flex justify-center">
361
+ <p-tieredmenu [model]="items">
362
+ <ng-template #item let-item let-hasSubmenu="hasSubmenu">
363
+ <a pRipple class="flex items-center px-4 py-3 cursor-pointer">
364
+ <span [class]="item.icon"></span>
365
+ <span class="ms-2">{{ item.label }}</span>
366
+ <p-badge *ngIf="item.badge" class="ml-auto" [value]="item.badge" />
367
+ <span *ngIf="item.shortcut" class="ml-auto border border-surface rounded bg-emphasis text-muted-color text-xs p-1">{{ item.shortcut }}</span>
368
+ <i *ngIf="hasSubmenu" class="pi pi-angle-right ms-auto rotate-90 lg:rotate-0"></i>
369
+ </a>
370
+ </ng-template>
371
+ </p-tieredmenu>
372
+ </div>
373
+ `,
374
+ standalone: true,
375
+ imports: [BadgeModule, TieredMenuModule, RippleModule]
376
+ })
377
+ export class TieredmenuTemplateDemo implements OnInit {
378
+ items: MenuItem[] | undefined;
379
+
380
+ ngOnInit() {
381
+ this.items = [
382
+ {
383
+ label: 'File',
384
+ icon: 'pi pi-file',
385
+ items: [
386
+ {
387
+ label: 'New',
388
+ icon: 'pi pi-plus',
389
+ items: [
390
+ {
391
+ label: 'Docs',
392
+ icon: 'pi pi-file',
393
+ shortcut: '⌘+N'
394
+ },
395
+ {
396
+ label: 'Image',
397
+ icon: 'pi pi-image',
398
+ shortcut: '⌘+I'
399
+ },
400
+ {
401
+ label: 'Video',
402
+ icon: 'pi pi-video',
403
+ shortcut: '⌘+L'
404
+ }
405
+ ]
406
+ },
407
+ {
408
+ label: 'Open',
409
+ icon: 'pi pi-folder-open',
410
+ shortcut: '⌘+O'
411
+ },
412
+ {
413
+ label: 'Print',
414
+ icon: 'pi pi-print',
415
+ shortcut: '⌘+P'
416
+ }
417
+ ]
418
+ },
419
+ {
420
+ label: 'Edit',
421
+ icon: 'pi pi-file-edit',
422
+ items: [
423
+ {
424
+ label: 'Copy',
425
+ icon: 'pi pi-copy',
426
+ shortcut: '⌘+C'
427
+ },
428
+ {
429
+ label: 'Delete',
430
+ icon: 'pi pi-times',
431
+ shortcut: '⌘+D'
432
+ }
433
+ ]
434
+ },
435
+ {
436
+ label: 'Search',
437
+ icon: 'pi pi-search',
438
+ shortcut: '⌘+S'
439
+ },
440
+ {
441
+ separator: true
442
+ },
443
+ {
444
+ label: 'Share',
445
+ icon: 'pi pi-share-alt',
446
+ items: [
447
+ {
448
+ label: 'Slack',
449
+ icon: 'pi pi-slack',
450
+ badge: '2'
451
+ },
452
+ {
453
+ label: 'Whatsapp',
454
+ icon: 'pi pi-whatsapp',
455
+ badge: '3'
456
+ }
457
+ ]
458
+ }
459
+ ];
460
+ }
461
+ }
462
+ ```
463
+
464
+ ## Tiered Menu
465
+
466
+ TieredMenu displays submenus in nested overlays.
467
+
468
+ ### Props
469
+
470
+ | Name | Type | Default | Description |
471
+ |------|------|---------|-------------|
472
+ | dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
473
+ | unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
474
+ | pt | InputSignal<TieredMenuPassThrough> | undefined | Used to pass attributes to DOM elements inside the component. |
475
+ | ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
476
+ | model | InputSignal<MenuItem[]> | ... | An array of menuitems. |
477
+ | popup | InputSignalWithTransform<boolean, unknown> | ... | Defines if menu would displayed as a popup. |
478
+ | style | InputSignal<{ [klass: string]: any }> | ... | Inline style of the component. |
479
+ | styleClass | InputSignal<string> | ... | Style class of the component. |
480
+ | breakpoint | InputSignal<string> | ... | The breakpoint to define the maximum width boundary. |
481
+ | autoZIndex | InputSignalWithTransform<boolean, unknown> | ... | Whether to automatically manage layering. |
482
+ | baseZIndex | InputSignalWithTransform<number, unknown> | ... | Base zIndex value to use in layering. |
483
+ | autoDisplay | InputSignalWithTransform<boolean, unknown> | true | Whether to show a root submenu on mouse over. |
484
+ | id | InputSignal<string> | ... | Current id state as a string. |
485
+ | ariaLabel | InputSignal<string> | ... | Defines a string value that labels an interactive element. |
486
+ | ariaLabelledBy | InputSignal<string> | ... | Identifier of the underlying input element. |
487
+ | disabled | InputSignalWithTransform<boolean, unknown> | ... | When present, it specifies that the component should be disabled. |
488
+ | tabindex | InputSignalWithTransform<number, unknown> | ... | Index of the element in tabbing order. |
489
+ | appendTo | InputSignal<any> | 'self' | Target element to attach the overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name). |
490
+ | motionOptions | InputSignal<MotionOptions> | ... | The motion options. |
491
+
492
+ ### Emits
493
+
494
+ | Name | Parameters | Description |
495
+ |------|------------|-------------|
496
+ | onShow | value: any | Callback to invoke when overlay menu is shown. |
497
+ | onHide | value: any | Callback to invoke when overlay menu is hidden. |
498
+
499
+ ### Templates
500
+
501
+ | Name | Type | Description |
502
+ |------|------|-------------|
503
+ | submenuicon | TemplateRef<void> | Custom submenu icon template. |
504
+ | item | TemplateRef<TieredMenuItemTemplateContext> | Custom item template. |
505
+
506
+ ### Methods
507
+
508
+ | Name | Parameters | Return Type | Description |
509
+ |------|------------|-------------|-------------|
510
+ | hide | event: any, isFocus: boolean | void | Hides the popup menu. |
511
+ | toggle | event: any | void | Toggles the visibility of the popup menu. |
512
+ | show | event: any, isFocus: any | void | Displays the popup menu. |
513
+
514
+ ## Pass Through Options
515
+
516
+ | Name | Type | Description |
517
+ |------|------|-------------|
518
+ | root | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the root's DOM element. |
519
+ | rootList | PassThroughOption<HTMLUListElement, I> | Used to pass attributes to the root list's DOM element. |
520
+ | submenu | PassThroughOption<HTMLUListElement, I> | Used to pass attributes to the submenu's DOM element. |
521
+ | item | PassThroughOption<HTMLLIElement, I> | Used to pass attributes to the item's DOM element. |
522
+ | itemContent | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the item content's DOM element. |
523
+ | itemLink | PassThroughOption<HTMLAnchorElement, I> | Used to pass attributes to the item link's DOM element. |
524
+ | itemIcon | PassThroughOption<HTMLSpanElement, I> | Used to pass attributes to the item icon's DOM element. |
525
+ | itemLabel | PassThroughOption<HTMLSpanElement, I> | Used to pass attributes to the item label's DOM element. |
526
+ | submenuIcon | PassThroughOption<HTMLSpanElement, I> | Used to pass attributes to the submenu icon's DOM element. |
527
+ | separator | PassThroughOption<HTMLLIElement, I> | Used to pass attributes to the separator's DOM element. |
528
+ | motion | MotionOptions | Used to pass options to the motion component/directive. |
529
+
530
+ ## Theming
531
+
532
+ ### CSS Classes
533
+
534
+ | Class | Description |
535
+ |-------|-------------|
536
+ | p-tieredmenu | Class name of the root element |
537
+ | p-tieredmenu-start | Class name of the start element |
538
+ | p-tieredmenu-root-list | Class name of the root list element |
539
+ | p-tieredmenu-item | Class name of the item element |
540
+ | p-tieredmenu-item-content | Class name of the item content element |
541
+ | p-tieredmenu-item-link | Class name of the item link element |
542
+ | p-tieredmenu-item-icon | Class name of the item icon element |
543
+ | p-tieredmenu-item-label | Class name of the item label element |
544
+ | p-tieredmenu-submenu-icon | Class name of the submenu icon element |
545
+ | p-tieredmenu-submenu | Class name of the submenu element |
546
+ | p-tieredmenu-separator | Class name of the separator element |
547
+ | p-tieredmenu-end | Class name of the end element |
548
+
549
+ ### Design Tokens
550
+
551
+ | Token | CSS Variable | Description |
552
+ |-------|--------------|-------------|
553
+ | tieredmenu.background | --p-tieredmenu-background | Background of root |
554
+ | tieredmenu.border.color | --p-tieredmenu-border-color | Border color of root |
555
+ | tieredmenu.color | --p-tieredmenu-color | Color of root |
556
+ | tieredmenu.border.radius | --p-tieredmenu-border-radius | Border radius of root |
557
+ | tieredmenu.shadow | --p-tieredmenu-shadow | Shadow of root |
558
+ | tieredmenu.transition.duration | --p-tieredmenu-transition-duration | Transition duration of root |
559
+ | tieredmenu.list.padding | --p-tieredmenu-list-padding | Padding of list |
560
+ | tieredmenu.list.gap | --p-tieredmenu-list-gap | Gap of list |
561
+ | tieredmenu.item.focus.background | --p-tieredmenu-item-focus-background | Focus background of item |
562
+ | tieredmenu.item.active.background | --p-tieredmenu-item-active-background | Active background of item |
563
+ | tieredmenu.item.color | --p-tieredmenu-item-color | Color of item |
564
+ | tieredmenu.item.focus.color | --p-tieredmenu-item-focus-color | Focus color of item |
565
+ | tieredmenu.item.active.color | --p-tieredmenu-item-active-color | Active color of item |
566
+ | tieredmenu.item.padding | --p-tieredmenu-item-padding | Padding of item |
567
+ | tieredmenu.item.border.radius | --p-tieredmenu-item-border-radius | Border radius of item |
568
+ | tieredmenu.item.gap | --p-tieredmenu-item-gap | Gap of item |
569
+ | tieredmenu.item.icon.color | --p-tieredmenu-item-icon-color | Icon color of item |
570
+ | tieredmenu.item.icon.focus.color | --p-tieredmenu-item-icon-focus-color | Icon focus color of item |
571
+ | tieredmenu.item.icon.active.color | --p-tieredmenu-item-icon-active-color | Icon active color of item |
572
+ | tieredmenu.submenu.mobile.indent | --p-tieredmenu-submenu-mobile-indent | Mobile indent of submenu |
573
+ | tieredmenu.submenu.icon.size | --p-tieredmenu-submenu-icon-size | Size of submenu icon |
574
+ | tieredmenu.submenu.icon.color | --p-tieredmenu-submenu-icon-color | Color of submenu icon |
575
+ | tieredmenu.submenu.icon.focus.color | --p-tieredmenu-submenu-icon-focus-color | Focus color of submenu icon |
576
+ | tieredmenu.submenu.icon.active.color | --p-tieredmenu-submenu-icon-active-color | Active color of submenu icon |
577
+ | tieredmenu.separator.border.color | --p-tieredmenu-separator-border-color | Border color of separator |
578
+