@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,462 @@
1
+ # Angular Menubar Component
2
+
3
+ Menubar is a horizontal menu component.
4
+
5
+ ## Accessibility
6
+
7
+ Screen Reader Menubar component uses the menubar role 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 MenuBar 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 mobile viewports, a menu icon appears with a button role along with aria-haspopup , aria-expanded and aria-controls to manage the relation between the overlay menubar and the button. The value to describe the button can be defined aria-label or aria-labelledby specified using buttonProps , by default navigation key of the aria property from the locale API as the aria-label . 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 If focus is on a root element, open a submenu and moves focus to the first element in the submenu otherwise moves focus to the next menuitem within the submenu. up arrow If focus is on a root element, opens a submenu and moves focus to the last element in the submenu otherwise moves focus to the previous menuitem within the submenu. right arrow If focus is on a root element, moves focus to the next menuitem otherwise opens a submenu if there is one available and moves focus to the first item. left arrow If focus is on a root element, moves focus to the previous menuitem otherwise 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
+ Menubar requires nested menuitems as its model.
12
+
13
+ ```typescript
14
+ import { Component, OnInit } from '@angular/core';
15
+ import { MenubarModule } from '@exhaustive-ui/core/menubar';
16
+ import { MenuItem } from '@exhaustive-ui/core/api';
17
+
18
+ @Component({
19
+ template: `
20
+ <div class="card">
21
+ <p-menubar [model]="items" />
22
+ </div>
23
+ `,
24
+ standalone: true,
25
+ imports: [MenubarModule]
26
+ })
27
+ export class MenubarBasicDemo implements OnInit {
28
+ items: MenuItem[] | undefined;
29
+
30
+ ngOnInit() {
31
+ this.items = [
32
+ {
33
+ label: 'Home',
34
+ icon: 'pi pi-home'
35
+ },
36
+ {
37
+ label: 'Features',
38
+ icon: 'pi pi-star'
39
+ },
40
+ {
41
+ label: 'Projects',
42
+ icon: 'pi pi-search',
43
+ items: [
44
+ {
45
+ label: 'Components',
46
+ icon: 'pi pi-bolt'
47
+ },
48
+ {
49
+ label: 'Blocks',
50
+ icon: 'pi pi-server'
51
+ },
52
+ {
53
+ label: 'UI Kit',
54
+ icon: 'pi pi-pencil'
55
+ },
56
+ {
57
+ label: 'Templates',
58
+ icon: 'pi pi-palette',
59
+ items: [
60
+ {
61
+ label: 'Apollo',
62
+ icon: 'pi pi-palette'
63
+ },
64
+ {
65
+ label: 'Ultima',
66
+ icon: 'pi pi-palette'
67
+ }
68
+ ]
69
+ }
70
+ ]
71
+ },
72
+ {
73
+ label: 'Contact',
74
+ icon: 'pi pi-envelope'
75
+ }
76
+ ];
77
+ }
78
+ }
79
+ ```
80
+
81
+ ## Command
82
+
83
+ The command property defines the callback to run when an item is activated by click or a key event.
84
+
85
+ ```typescript
86
+ import { Component, OnInit, inject } from '@angular/core';
87
+ import { MenubarModule } from '@exhaustive-ui/core/menubar';
88
+ import { ToastModule } from '@exhaustive-ui/core/toast';
89
+ import { MenuItem, MessageService } from '@exhaustive-ui/core/api';
90
+
91
+ @Component({
92
+ template: `
93
+ <div class="card">
94
+ <p-toast />
95
+ <p-menubar [model]="items" />
96
+ </div>
97
+ `,
98
+ standalone: true,
99
+ imports: [MenubarModule, ToastModule],
100
+ providers: [MessageService]
101
+ })
102
+ export class MenubarCommandDemo implements OnInit {
103
+ private messageService = inject(MessageService);
104
+ items: MenuItem[] | undefined;
105
+
106
+ ngOnInit() {
107
+ this.items = [
108
+ {
109
+ label: 'File',
110
+ icon: 'pi pi-file',
111
+ items: [
112
+ {
113
+ label: 'New',
114
+ icon: 'pi pi-plus',
115
+ command: () => {
116
+ this.messageService.add({ severity: 'success', summary: 'Success', detail: 'File created', life: 3000 });
117
+ }
118
+ },
119
+ {
120
+ label: 'Print',
121
+ icon: 'pi pi-print',
122
+ command: () => {
123
+ this.messageService.add({ severity: 'error', summary: 'Error', detail: 'No printer connected', life: 3000 });
124
+ }
125
+ }
126
+ ]
127
+ },
128
+ {
129
+ label: 'Search',
130
+ icon: 'pi pi-search',
131
+ command: () => {
132
+ this.messageService.add({ severity: 'warn', summary: 'Search Results', detail: 'No results found', life: 3000 });
133
+ }
134
+ },
135
+ {
136
+ separator: true
137
+ },
138
+ {
139
+ label: 'Sync',
140
+ icon: 'pi pi-cloud',
141
+ items: [
142
+ {
143
+ label: 'Import',
144
+ icon: 'pi pi-cloud-download',
145
+ command: () => {
146
+ this.messageService.add({
147
+ severity: 'info',
148
+ summary: 'Downloads',
149
+ detail: 'Downloaded from cloud',
150
+ life: 3000
151
+ });
152
+ }
153
+ },
154
+ {
155
+ label: 'Export',
156
+ icon: 'pi pi-cloud-upload',
157
+ command: () => {
158
+ this.messageService.add({ severity: 'info', summary: 'Shared', detail: 'Exported to cloud', life: 3000 });
159
+ }
160
+ }
161
+ ]
162
+ }
163
+ ];
164
+ }
165
+ }
166
+ ```
167
+
168
+ ## Router
169
+
170
+ Menu items support navigation via routerLink, programmatic routing using commands, or external URLs.
171
+
172
+ ```typescript
173
+ import { Component, OnInit } from '@angular/core';
174
+ import { MenubarModule } from '@exhaustive-ui/core/menubar';
175
+ import { MenuItem } from '@exhaustive-ui/core/api';
176
+
177
+ @Component({
178
+ template: `
179
+ <div class="card">
180
+ <p-menubar [model]="items" />
181
+ </div>
182
+ `,
183
+ standalone: true,
184
+ imports: [MenubarModule]
185
+ })
186
+ export class MenubarRouterDemo implements OnInit {
187
+ items: MenuItem[] | undefined;
188
+
189
+ ngOnInit() {
190
+ this.items = [
191
+ {
192
+ label: 'Router',
193
+ icon: 'pi pi-palette',
194
+ items: [
195
+ {
196
+ label: 'Installation',
197
+ routerLink: '/installation'
198
+ },
199
+ {
200
+ label: 'Configuration',
201
+ routerLink: '/configuration'
202
+ }
203
+ ]
204
+ },
205
+ {
206
+ label: 'Programmatic',
207
+ icon: 'pi pi-link',
208
+ command: () => {
209
+ this.router.navigate(['/installation']);
210
+ }
211
+ },
212
+ {
213
+ label: 'External',
214
+ icon: 'pi pi-home',
215
+ items: [
216
+ {
217
+ label: 'Angular',
218
+ url: 'https://angular.io/'
219
+ },
220
+ {
221
+ label: 'Vite.js',
222
+ url: 'https://vitejs.dev/'
223
+ }
224
+ ]
225
+ }
226
+ ];
227
+ }
228
+ }
229
+ ```
230
+
231
+ ## Template
232
+
233
+ Custom content can be placed inside the menubar using the start and end templates.
234
+
235
+ ```typescript
236
+ import { Component, OnInit } from '@angular/core';
237
+ import { AvatarModule } from '@exhaustive-ui/core/avatar';
238
+ import { BadgeModule } from '@exhaustive-ui/core/badge';
239
+ import { MenubarModule } from '@exhaustive-ui/core/menubar';
240
+ import { InputTextModule } from '@exhaustive-ui/core/inputtext';
241
+ import { RippleModule } from '@exhaustive-ui/core/ripple';
242
+ import { MenuItem } from '@exhaustive-ui/core/api';
243
+
244
+ @Component({
245
+ template: `
246
+ <div class="card">
247
+ <p-menubar [model]="items">
248
+ <ng-template #start>
249
+ <svg width="31" height="33" viewBox="0 0 31 33" fill="none" xmlns="http://www.w3.org/2000/svg" class="block mx-auto">
250
+ <path d="M15.1934 0V0V0L0.0391235 5.38288L2.35052 25.3417L15.1934 32.427V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1934 0Z" fill="var(--p-primary-color)" />
251
+ <mask id="mask0_1_52" style="mask-type:luminance" maskUnits="userSpaceOnUse" x="0" y="0" width="31" height="33">
252
+ <path d="M15.1934 0V0V0L0.0391235 5.38288L2.35052 25.3417L15.1934 32.427V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1934 0Z" fill="var(--ground-background)" />
253
+ </mask>
254
+ <g mask="url(#mask0_1_52)">
255
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M15.1935 0V3.5994V3.58318V20.0075V20.0075V32.427V32.427L28.0364 25.3417L30.3478 5.38288L15.1935 0Z" fill="var(--p-primary-color)" />
256
+ </g>
257
+ <path d="M19.6399 15.3776L18.1861 15.0547L19.3169 16.6695V21.6755L23.1938 18.4458V12.9554L21.4169 13.6013L19.6399 15.3776Z" fill="var(--ground-background)" />
258
+ <path d="M10.5936 15.3776L12.0474 15.0547L10.9166 16.6695V21.6755L7.03966 18.4458V12.9554L8.81661 13.6013L10.5936 15.3776Z" fill="var(--ground-background)" />
259
+ <path
260
+ fill-rule="evenodd"
261
+ clip-rule="evenodd"
262
+ d="M11.3853 16.9726L12.6739 15.0309L13.4793 15.5163H16.7008L17.5061 15.0309L18.7947 16.9726V24.254L17.8283 25.7103L16.7008 26.843H13.4793L12.3518 25.7103L11.3853 24.254V16.9726Z"
263
+ fill="var(--ground-background)"
264
+ />
265
+ <path d="M19.3168 24.7437L21.4168 22.6444V20.5451L19.3168 22.3214V24.7437Z" fill="var(--ground-background)" />
266
+ <path d="M10.9166 24.7437L8.81662 22.6444V20.5451L10.9166 22.3214V24.7437Z" fill="var(--ground-background)" />
267
+ <path
268
+ fill-rule="evenodd"
269
+ clip-rule="evenodd"
270
+ d="M13.0167 5.68861L11.7244 8.7568L13.8244 14.8932H14.7936V5.68861H13.0167ZM15.4397 5.68861V14.8932H16.5706L18.5091 8.7568L17.2167 5.68861H15.4397Z"
271
+ fill="var(--ground-background)"
272
+ />
273
+ <path d="M13.8244 14.8932L6.87813 12.3094L5.90888 8.27235L11.8859 8.7568L13.9859 14.8932H13.8244Z" fill="var(--ground-background)" />
274
+ <path d="M16.5706 14.8932L23.5169 12.3094L24.4861 8.27235L18.3476 8.7568L16.4091 14.8932H16.5706Z" fill="var(--ground-background)" />
275
+ <path d="M18.8321 8.27235L22.2245 7.94938L19.9629 5.68861H17.7013L18.8321 8.27235Z" fill="var(--ground-background)" />
276
+ <path d="M11.4013 8.27235L8.00893 7.94938L10.2705 5.68861H12.5321L11.4013 8.27235Z" fill="var(--ground-background)" />
277
+ </svg>
278
+ </ng-template>
279
+ <ng-template #item let-item let-root="root">
280
+ <a pRipple class="flex items-center px-4 py-3 cursor-pointer gap-2">
281
+ <span>{{ item.label }}</span>
282
+ <p-badge *ngIf="item.badge" [ngClass]="{ 'ms-auto': !root }" [value]="item.badge" />
283
+ <span *ngIf="item.shortcut" class="ms-auto border border-surface rounded bg-emphasis text-muted-color text-xs p-1">{{ item.shortcut }}</span>
284
+ <i *ngIf="item.items" [ngClass]="['ms-auto pi', root ? 'pi-angle-down' : 'pi-angle-right']"></i>
285
+ </a>
286
+ </ng-template>
287
+ <ng-template #end>
288
+ <div class="flex items-center gap-2">
289
+ <input type="text" pInputText placeholder="Search" class="w-36" />
290
+ <p-avatar image="https://exhaustive-ui.e-xiste.com/demo/avatar/amyelsner.png" shape="circle" />
291
+ </div>
292
+ </ng-template>
293
+ </p-menubar>
294
+ </div>
295
+ `,
296
+ standalone: true,
297
+ imports: [AvatarModule, BadgeModule, MenubarModule, InputTextModule, RippleModule]
298
+ })
299
+ export class MenubarTemplateDemo implements OnInit {
300
+ items: MenuItem[] | undefined;
301
+
302
+ ngOnInit() {
303
+ this.items = [
304
+ {
305
+ label: 'Home',
306
+ icon: 'pi pi-home'
307
+ },
308
+ {
309
+ label: 'Projects',
310
+ icon: 'pi pi-search',
311
+ badge: '3',
312
+ items: [
313
+ {
314
+ label: 'Core',
315
+ icon: 'pi pi-bolt',
316
+ shortcut: '⌘+S'
317
+ },
318
+ {
319
+ label: 'Blocks',
320
+ icon: 'pi pi-server',
321
+ shortcut: '⌘+B'
322
+ },
323
+ {
324
+ separator: true
325
+ },
326
+ {
327
+ label: 'UI Kit',
328
+ icon: 'pi pi-pencil',
329
+ shortcut: '⌘+U'
330
+ }
331
+ ]
332
+ }
333
+ ];
334
+ }
335
+ }
336
+ ```
337
+
338
+ ## Menubar
339
+
340
+ Menubar is a horizontal menu component.
341
+
342
+ ### Props
343
+
344
+ | Name | Type | Default | Description |
345
+ |------|------|---------|-------------|
346
+ | dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
347
+ | unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
348
+ | pt | InputSignal<MenubarPassThrough> | undefined | Used to pass attributes to DOM elements inside the component. |
349
+ | ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
350
+ | model | InputSignal<MenuItem[]> | ... | An array of menuitems. |
351
+ | autoDisplay | InputSignalWithTransform<boolean, unknown> | true | Whether to show a root submenu on mouse over. |
352
+ | autoHide | InputSignalWithTransform<boolean, unknown> | ... | Whether to hide a root submenu when mouse leaves. |
353
+ | breakpoint | InputSignal<string> | ... | The breakpoint to define the maximum width boundary. |
354
+ | autoHideDelay | InputSignalWithTransform<number, unknown> | ... | Delay to hide the root submenu in milliseconds when mouse leaves. |
355
+ | id | InputSignal<string> | ... | Current id state as a string. |
356
+ | ariaLabel | InputSignal<string> | ... | Defines a string value that labels an interactive element. |
357
+ | ariaLabelledBy | InputSignal<string> | ... | Identifier of the underlying input element. |
358
+
359
+ ### Emits
360
+
361
+ | Name | Parameters | Description |
362
+ |------|------------|-------------|
363
+ | onFocus | event: FocusEvent | Callback to execute when button is focused. |
364
+ | onBlur | event: FocusEvent | Callback to execute when button loses focus. |
365
+
366
+ ### Templates
367
+
368
+ | Name | Type | Description |
369
+ |------|------|-------------|
370
+ | start | TemplateRef<void> | Defines template option for start. |
371
+ | end | TemplateRef<void> | Defines template option for end. |
372
+ | item | TemplateRef<MenubarItemTemplateContext> | Custom item template. |
373
+ | menuicon | TemplateRef<void> | Defines template option for menu icon. |
374
+ | submenuicon | TemplateRef<void> | Defines template option for submenu icon. |
375
+
376
+ ## Pass Through Options
377
+
378
+ | Name | Type | Description |
379
+ |------|------|-------------|
380
+ | root | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the root's DOM element. |
381
+ | rootList | PassThroughOption<HTMLUListElement, I> | Used to pass attributes to the root list's DOM element. |
382
+ | item | PassThroughOption<HTMLLIElement, I> | Used to pass attributes to the item's DOM element. |
383
+ | itemContent | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the item content's DOM element. |
384
+ | itemLink | PassThroughOption<HTMLAnchorElement, I> | Used to pass attributes to the item link's DOM element. |
385
+ | itemIcon | PassThroughOption<HTMLSpanElement, I> | Used to pass attributes to the item icon's DOM element. |
386
+ | itemLabel | PassThroughOption<HTMLSpanElement, I> | Used to pass attributes to the item label's DOM element. |
387
+ | submenuIcon | PassThroughOption<SVGElement, I> | Used to pass attributes to the submenu icon's DOM element. |
388
+ | separator | PassThroughOption<HTMLLIElement, I> | Used to pass attributes to the separator's DOM element. |
389
+ | button | PassThroughOption<HTMLAnchorElement, I> | Used to pass attributes to the mobile menu button's DOM element. |
390
+ | buttonIcon | PassThroughOption<SVGElement, I> | Used to pass attributes to the mobile menu button icon's DOM element. |
391
+ | submenu | PassThroughOption<HTMLUListElement, I> | Used to pass attributes to the submenu's DOM element. |
392
+ | start | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the start of the component. |
393
+ | end | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the end of the component. |
394
+ | pcBadge | BadgePassThrough | Used to pass attributes to Badge component. |
395
+
396
+ ## Theming
397
+
398
+ ### CSS Classes
399
+
400
+ | Class | Description |
401
+ |-------|-------------|
402
+ | p-menubar | Class name of the root element |
403
+ | p-menubar-start | Class name of the start element |
404
+ | p-menubar-button | Class name of the button element |
405
+ | p-menubar-root-list | Class name of the root list element |
406
+ | p-menubar-item | Class name of the item element |
407
+ | p-menubar-item-content | Class name of the item content element |
408
+ | p-menubar-item-link | Class name of the item link element |
409
+ | p-menubar-item-icon | Class name of the item icon element |
410
+ | p-menubar-item-label | Class name of the item label element |
411
+ | p-menubar-submenu-icon | Class name of the submenu icon element |
412
+ | p-menubar-submenu | Class name of the submenu element |
413
+ | p-menubar-separator | Class name of the separator element |
414
+ | p-menubar-end | Class name of the end element |
415
+
416
+ ### Design Tokens
417
+
418
+ | Token | CSS Variable | Description |
419
+ |-------|--------------|-------------|
420
+ | menubar.background | --p-menubar-background | Background of root |
421
+ | menubar.border.color | --p-menubar-border-color | Border color of root |
422
+ | menubar.border.radius | --p-menubar-border-radius | Border radius of root |
423
+ | menubar.color | --p-menubar-color | Color of root |
424
+ | menubar.gap | --p-menubar-gap | Gap of root |
425
+ | menubar.padding | --p-menubar-padding | Padding of root |
426
+ | menubar.transition.duration | --p-menubar-transition-duration | Transition duration of root |
427
+ | menubar.base.item.border.radius | --p-menubar-base-item-border-radius | Border radius of base item |
428
+ | menubar.base.item.padding | --p-menubar-base-item-padding | Padding of base item |
429
+ | menubar.item.focus.background | --p-menubar-item-focus-background | Focus background of item |
430
+ | menubar.item.active.background | --p-menubar-item-active-background | Active background of item |
431
+ | menubar.item.color | --p-menubar-item-color | Color of item |
432
+ | menubar.item.focus.color | --p-menubar-item-focus-color | Focus color of item |
433
+ | menubar.item.active.color | --p-menubar-item-active-color | Active color of item |
434
+ | menubar.item.padding | --p-menubar-item-padding | Padding of item |
435
+ | menubar.item.border.radius | --p-menubar-item-border-radius | Border radius of item |
436
+ | menubar.item.gap | --p-menubar-item-gap | Gap of item |
437
+ | menubar.item.icon.color | --p-menubar-item-icon-color | Icon color of item |
438
+ | menubar.item.icon.focus.color | --p-menubar-item-icon-focus-color | Icon focus color of item |
439
+ | menubar.item.icon.active.color | --p-menubar-item-icon-active-color | Icon active color of item |
440
+ | menubar.submenu.padding | --p-menubar-submenu-padding | Padding of submenu |
441
+ | menubar.submenu.gap | --p-menubar-submenu-gap | Gap of submenu |
442
+ | menubar.submenu.background | --p-menubar-submenu-background | Background of submenu |
443
+ | menubar.submenu.border.color | --p-menubar-submenu-border-color | Border color of submenu |
444
+ | menubar.submenu.border.radius | --p-menubar-submenu-border-radius | Border radius of submenu |
445
+ | menubar.submenu.shadow | --p-menubar-submenu-shadow | Shadow of submenu |
446
+ | menubar.submenu.mobile.indent | --p-menubar-submenu-mobile-indent | Mobile indent of submenu |
447
+ | menubar.submenu.icon.size | --p-menubar-submenu-icon-size | Icon size of submenu |
448
+ | menubar.submenu.icon.color | --p-menubar-submenu-icon-color | Icon color of submenu |
449
+ | menubar.submenu.icon.focus.color | --p-menubar-submenu-icon-focus-color | Icon focus color of submenu |
450
+ | menubar.submenu.icon.active.color | --p-menubar-submenu-icon-active-color | Icon active color of submenu |
451
+ | menubar.separator.border.color | --p-menubar-separator-border-color | Border color of separator |
452
+ | menubar.mobile.button.border.radius | --p-menubar-mobile-button-border-radius | Border radius of mobile button |
453
+ | menubar.mobile.button.size | --p-menubar-mobile-button-size | Size of mobile button |
454
+ | menubar.mobile.button.color | --p-menubar-mobile-button-color | Color of mobile button |
455
+ | menubar.mobile.button.hover.color | --p-menubar-mobile-button-hover-color | Hover color of mobile button |
456
+ | menubar.mobile.button.hover.background | --p-menubar-mobile-button-hover-background | Hover background of mobile button |
457
+ | menubar.mobile.button.focus.ring.width | --p-menubar-mobile-button-focus-ring-width | Focus ring width of mobile button |
458
+ | menubar.mobile.button.focus.ring.style | --p-menubar-mobile-button-focus-ring-style | Focus ring style of mobile button |
459
+ | menubar.mobile.button.focus.ring.color | --p-menubar-mobile-button-focus-ring-color | Focus ring color of mobile button |
460
+ | menubar.mobile.button.focus.ring.offset | --p-menubar-mobile-button-focus-ring-offset | Focus ring offset of mobile button |
461
+ | menubar.mobile.button.focus.ring.shadow | --p-menubar-mobile-button-focus-ring-shadow | Focus ring shadow of mobile button |
462
+