@exhaustive-ui/mcp 0.0.0-stage → 22.0.0-alpha.0

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,234 @@
1
+ # Angular Badge Component
2
+
3
+ Badge is a small status indicator for another element.
4
+
5
+ ## Accessibility
6
+
7
+ Screen Reader Badge does not include any roles and attributes by default, any attribute is passed to the root element so aria roles and attributes can be added if required. If the badges are dynamic, aria-live may be utilized as well. In case badges need to be tabbable, tabIndex can be added to implement custom key handlers. Keyboard Support Component does not include any interactive elements.
8
+
9
+ ## Basic
10
+
11
+ Content of the badge is specified using the value property.
12
+
13
+ ```typescript
14
+ import { Component } from '@angular/core';
15
+ import { BadgeModule } from '@exhaustive-ui/core/badge';
16
+
17
+ @Component({
18
+ template: `
19
+ <div class="card flex justify-center">
20
+ <p-badge value="2" />
21
+ </div>
22
+ `,
23
+ standalone: true,
24
+ imports: [BadgeModule]
25
+ })
26
+ export class BadgeBasicDemo {}
27
+ ```
28
+
29
+ ## Button
30
+
31
+ Buttons have built-in support for badges to display a badge inline.
32
+
33
+ ```typescript
34
+ import { Component } from '@angular/core';
35
+ import { ButtonModule } from '@exhaustive-ui/core/button';
36
+
37
+ @Component({
38
+ template: `
39
+ <div class="card flex justify-center flex-wrap gap-4">
40
+ <p-button label="Emails" icon="pi pi-bell" label="Notifications" badge="2" />
41
+ <p-button label="Inbox" icon="pi pi-inbox" badge="2" badgeSeverity="contrast" outlined />
42
+ </div>
43
+ `,
44
+ standalone: true,
45
+ imports: [ButtonModule]
46
+ })
47
+ export class BadgeButtonDemo {}
48
+ ```
49
+
50
+ ## directive-doc
51
+
52
+ Content of the badge is specified using the value property.
53
+
54
+ ```typescript
55
+ import { Component } from '@angular/core';
56
+
57
+ @Component({
58
+ template: `
59
+ <div class="card flex justify-center">
60
+ <i class="pi pi-bell !text-3xl" pBadge value="2"></i>
61
+ </div>
62
+ `,
63
+ standalone: true,
64
+ imports: []
65
+ })
66
+ export class BadgeDirectiveDemo {}
67
+ ```
68
+
69
+ ## Overlay
70
+
71
+ A badge can be added to any element by encapsulating the content with the OverlayBadge component.
72
+
73
+ ```typescript
74
+ import { Component } from '@angular/core';
75
+ import { OverlayBadgeModule } from '@exhaustive-ui/core/overlaybadge';
76
+
77
+ @Component({
78
+ template: `
79
+ <div class="card flex flex-wrap justify-center gap-6">
80
+ <p-overlaybadge value="2">
81
+ <i class="pi pi-bell" style="font-size: 2rem"></i>
82
+ </p-overlaybadge>
83
+ <p-overlaybadge value="4" severity="danger">
84
+ <i class="pi pi-calendar" style="font-size: 2rem"></i>
85
+ </p-overlaybadge>
86
+ <p-overlaybadge severity="danger">
87
+ <i class="pi pi-envelope" style="font-size: 2rem"></i>
88
+ </p-overlaybadge>
89
+ </div>
90
+ `,
91
+ standalone: true,
92
+ imports: [OverlayBadgeModule]
93
+ })
94
+ export class BadgeOverlayDemo {}
95
+ ```
96
+
97
+ ## position-doc
98
+
99
+ A Badge can be positioned at the top right corner of an element by adding p-overlay-badge style class to the element and embedding the badge inside.
100
+
101
+ ```typescript
102
+ import { Component } from '@angular/core';
103
+
104
+ @Component({
105
+ template: `
106
+ <div class="card flex justify-center">
107
+ <i class="pi pi-bell mr-6 p-text-secondary" pBadge style="font-size: 2rem" value="2"></i>
108
+ <i class="pi pi-calendar mr-6 p-text-secondary" pBadge style="font-size: 2rem" [value]="'10+'" severity="danger"></i>
109
+ <i class="pi pi-envelope p-text-secondary" pBadge style="font-size: 2rem" severity="danger"></i>
110
+ </div>
111
+ `,
112
+ standalone: true,
113
+ imports: []
114
+ })
115
+ export class BadgePositionDemo {}
116
+ ```
117
+
118
+ ## Severity
119
+
120
+ Severity defines the color of the badge, possible values are success , info , warn and danger
121
+
122
+ ```typescript
123
+ import { Component } from '@angular/core';
124
+ import { BadgeModule } from '@exhaustive-ui/core/badge';
125
+
126
+ @Component({
127
+ template: `
128
+ <div class="card flex justify-center gap-2">
129
+ <p-badge value="2" />
130
+ <p-badge value="6" severity="secondary" />
131
+ <p-badge value="8" severity="success" />
132
+ <p-badge value="4" severity="info" />
133
+ <p-badge value="9" severity="warn" />
134
+ <p-badge value="3" severity="danger" />
135
+ <p-badge value="5" severity="contrast" />
136
+ </div>
137
+ `,
138
+ standalone: true,
139
+ imports: [BadgeModule]
140
+ })
141
+ export class BadgeSeverityDemo {}
142
+ ```
143
+
144
+ ## Size
145
+
146
+ Badge sizes are adjusted with the badgeSize property that accepts small , large and xlarge as the possible alternatives to the default size. Currently sizes only apply to component mode.
147
+
148
+ ```typescript
149
+ import { Component } from '@angular/core';
150
+ import { BadgeModule } from '@exhaustive-ui/core/badge';
151
+
152
+ @Component({
153
+ template: `
154
+ <div class="card flex justify-center gap-1 items-end">
155
+ <p-badge value="8" badgeSize="xlarge" severity="success" />
156
+ <p-badge value="6" badgeSize="large" severity="warn" />
157
+ <p-badge value="4" severity="info" />
158
+ <p-badge value="2" badgeSize="small" />
159
+ </div>
160
+ `,
161
+ standalone: true,
162
+ imports: [BadgeModule]
163
+ })
164
+ export class BadgeSizeDemo {}
165
+ ```
166
+
167
+ ## Badge
168
+
169
+ Badge is a small status indicator for another element.
170
+
171
+ ### Props
172
+
173
+ | Name | Type | Default | Description |
174
+ |------|------|---------|-------------|
175
+ | badgeSize | InputSignal<"small" \| "large" \| "xlarge"> | ... | Size of the badge, valid options are "large" and "xlarge". |
176
+ | size | InputSignal<"small" \| "large" \| "xlarge"> | ... | Size of the badge, valid options are "large" and "xlarge". |
177
+ | severity | InputSignal<BadgeSeverity> | ... | Severity type of the badge. |
178
+ | value | InputSignal<string \| number> | ... | Value to display inside the badge. |
179
+ | badgeDisabled | InputSignalWithTransform<boolean, boolean> | ... | When specified, disables the component. |
180
+ | dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
181
+ | unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
182
+ | pt | InputSignal<BadgePassThrough> | undefined | Used to pass attributes to DOM elements inside the component. |
183
+ | ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
184
+
185
+ ## Pass Through Options
186
+
187
+ | Name | Type | Description |
188
+ |------|------|-------------|
189
+ | host | PassThroughOption<HTMLElement, I> | Used to pass attributes to the host's DOM element. |
190
+ | root | PassThroughOption<HTMLElement, I> | Used to pass attributes to the root's DOM element. |
191
+
192
+ ## Theming
193
+
194
+ ### CSS Classes
195
+
196
+ | Class | Description |
197
+ |-------|-------------|
198
+ | p-badge | Class name of the root element |
199
+
200
+ ### Design Tokens
201
+
202
+ | Token | CSS Variable | Description |
203
+ |-------|--------------|-------------|
204
+ | badge.border.radius | --p-badge-border-radius | Border radius of root |
205
+ | badge.padding | --p-badge-padding | Padding of root |
206
+ | badge.font.size | --p-badge-font-size | Font size of root |
207
+ | badge.font.weight | --p-badge-font-weight | Font weight of root |
208
+ | badge.min.width | --p-badge-min-width | Min width of root |
209
+ | badge.height | --p-badge-height | Height of root |
210
+ | badge.dot.size | --p-badge-dot-size | Size of dot |
211
+ | badge.sm.font.size | --p-badge-sm-font-size | Font size of sm |
212
+ | badge.sm.min.width | --p-badge-sm-min-width | Min width of sm |
213
+ | badge.sm.height | --p-badge-sm-height | Height of sm |
214
+ | badge.lg.font.size | --p-badge-lg-font-size | Font size of lg |
215
+ | badge.lg.min.width | --p-badge-lg-min-width | Min width of lg |
216
+ | badge.lg.height | --p-badge-lg-height | Height of lg |
217
+ | badge.xl.font.size | --p-badge-xl-font-size | Font size of xl |
218
+ | badge.xl.min.width | --p-badge-xl-min-width | Min width of xl |
219
+ | badge.xl.height | --p-badge-xl-height | Height of xl |
220
+ | badge.primary.background | --p-badge-primary-background | Background of primary |
221
+ | badge.primary.color | --p-badge-primary-color | Color of primary |
222
+ | badge.secondary.background | --p-badge-secondary-background | Background of secondary |
223
+ | badge.secondary.color | --p-badge-secondary-color | Color of secondary |
224
+ | badge.success.background | --p-badge-success-background | Background of success |
225
+ | badge.success.color | --p-badge-success-color | Color of success |
226
+ | badge.info.background | --p-badge-info-background | Background of info |
227
+ | badge.info.color | --p-badge-info-color | Color of info |
228
+ | badge.warn.background | --p-badge-warn-background | Background of warn |
229
+ | badge.warn.color | --p-badge-warn-color | Color of warn |
230
+ | badge.danger.background | --p-badge-danger-background | Background of danger |
231
+ | badge.danger.color | --p-badge-danger-color | Color of danger |
232
+ | badge.contrast.background | --p-badge-contrast-background | Background of contrast |
233
+ | badge.contrast.color | --p-badge-contrast-color | Color of contrast |
234
+
@@ -0,0 +1,108 @@
1
+ # Angular BlockUI Component
2
+
3
+ BlockUI can either block other components or the whole page.
4
+
5
+ ## Accessibility
6
+
7
+ Screen Reader BlockUI manages aria-busy state attribute when the UI gets blocked and unblocked. Any valid attribute is passed to the root element so additional attributes like role and aria-live can be used to define live regions. Keyboard Support Component does not include any interactive elements.
8
+
9
+ ## Basic
10
+
11
+ The element to block should be placed as a child of BlockUI and blocked property is required to control the state.
12
+
13
+ ```typescript
14
+ import { Component } from '@angular/core';
15
+ import { BlockUIModule } from '@exhaustive-ui/core/blockui';
16
+ import { ButtonModule } from '@exhaustive-ui/core/button';
17
+ import { PanelModule } from '@exhaustive-ui/core/panel';
18
+
19
+ @Component({
20
+ template: `
21
+ <div class="card">
22
+ <p-button label="Block" (click)="blockedPanel = true" class="me-2" severity="secondary" />
23
+ <p-button label="Unblock" (click)="blockedPanel = false" severity="secondary" />
24
+ <p-blockui [target]="pnl" [blocked]="blockedPanel" />
25
+ <p-panel #pnl header="Header" class="mt-6">
26
+ <p class="m-0">
27
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
28
+ consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
29
+ </p>
30
+ </p-panel>
31
+ </div>
32
+ `,
33
+ standalone: true,
34
+ imports: [BlockUIModule, ButtonModule, PanelModule]
35
+ })
36
+ export class BlockuiBasicDemo {
37
+ blockedPanel: boolean = false;
38
+ }
39
+ ```
40
+
41
+ ## Document
42
+
43
+ If the target element is not specified, BlockUI blocks the document by default.
44
+
45
+ ```typescript
46
+ import { Component } from '@angular/core';
47
+ import { BlockUIModule } from '@exhaustive-ui/core/blockui';
48
+ import { ButtonModule } from '@exhaustive-ui/core/button';
49
+
50
+ @Component({
51
+ template: `
52
+ <div class="card">
53
+ <p-blockui [blocked]="blockedDocument" />
54
+ <p-button label="Block" (click)="blockDocument()" />
55
+ </div>
56
+ `,
57
+ standalone: true,
58
+ imports: [BlockUIModule, ButtonModule]
59
+ })
60
+ export class BlockuiDocumentDemo {
61
+ blockedDocument: boolean = false;
62
+ }
63
+ ```
64
+
65
+ ## Block U I
66
+
67
+ BlockUI can either block other components or the whole page.
68
+
69
+ ### Props
70
+
71
+ | Name | Type | Default | Description |
72
+ |------|------|---------|-------------|
73
+ | dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
74
+ | unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
75
+ | pt | InputSignal<BlockUIPassThrough> | undefined | Used to pass attributes to DOM elements inside the component. |
76
+ | ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
77
+ | target | InputSignal<any> | ... | Name of the local ng-template variable referring to another component. |
78
+ | autoZIndex | InputSignalWithTransform<boolean, unknown> | ... | Whether to automatically manage layering. |
79
+ | baseZIndex | InputSignalWithTransform<number, unknown> | ... | Base zIndex value to use in layering. |
80
+ | blocked | InputSignalWithTransform<boolean, unknown> | ... | Current blocked state as a boolean. |
81
+
82
+ ### Templates
83
+
84
+ | Name | Type | Description |
85
+ |------|------|-------------|
86
+ | content | TemplateRef<any> | template of the content |
87
+
88
+ ## Pass Through Options
89
+
90
+ | Name | Type | Description |
91
+ |------|------|-------------|
92
+ | host | PassThroughOption<HTMLElement, I> | Used to pass attributes to the host's DOM element. |
93
+ | root | PassThroughOption<HTMLDivElement, I> | Used to pass attributes to the root's DOM element. |
94
+
95
+ ## Theming
96
+
97
+ ### CSS Classes
98
+
99
+ | Class | Description |
100
+ |-------|-------------|
101
+ | p-blockui | Class name of the root element |
102
+
103
+ ### Design Tokens
104
+
105
+ | Token | CSS Variable | Description |
106
+ |-------|--------------|-------------|
107
+ | blockui.border.radius | --p-blockui-border-radius | Border radius of root |
108
+
@@ -0,0 +1,178 @@
1
+ # Angular Breadcrumb Component
2
+
3
+ Breadcrumb provides contextual information about page hierarchy.
4
+
5
+ ## Accessibility
6
+
7
+ Screen Reader Breadcrumb uses the nav element and since any attribute is passed to the root implicitly aria-labelledby or aria-label can be used to describe the component. Inside an ordered list is used where the list item separators have aria-hidden to be able to ignored by the screen readers. If the last link represents the current route, aria-current is added with "page" as the value. The home item renders an icon, so when it has no label the link is named with the homeAriaLabel property. When homeAriaLabel is not defined either, the aria.home key of the locale configuration is used as the default. Keyboard Support No special keyboard interaction is needed, all menuitems are focusable based on the page tab sequence.
8
+
9
+ ## Basic
10
+
11
+ Breadcrumb provides contextual information about page hierarchy.
12
+
13
+ ```typescript
14
+ import { Component, OnInit } from '@angular/core';
15
+ import { BreadcrumbModule } from '@exhaustive-ui/core/breadcrumb';
16
+ import { MenuItem } from '@exhaustive-ui/core/api';
17
+
18
+ @Component({
19
+ template: `
20
+ <div class="card flex justify-center">
21
+ <p-breadcrumb [model]="items" [home]="home" />
22
+ </div>
23
+ `,
24
+ standalone: true,
25
+ imports: [BreadcrumbModule]
26
+ })
27
+ export class BreadcrumbBasicDemo implements OnInit {
28
+ items: MenuItem[] | undefined;
29
+ home: MenuItem | undefined;
30
+
31
+ ngOnInit() {
32
+ this.items = [{ label: 'Electronics' }, { label: 'Computer' }, { label: 'Accessories' }, { label: 'Keyboard' }, { label: 'Wireless' }];
33
+ this.home = { icon: 'pi pi-home' };
34
+ }
35
+ }
36
+ ```
37
+
38
+ ## Router
39
+
40
+ Menu items support navigation via routerLink, programmatic routing using commands, or external URLs.
41
+
42
+ ```typescript
43
+ import { Component } from '@angular/core';
44
+ import { BreadcrumbModule } from '@exhaustive-ui/core/breadcrumb';
45
+ import { MenuItem } from '@exhaustive-ui/core/api';
46
+
47
+ @Component({
48
+ template: `
49
+ <div class="card flex justify-center">
50
+ <p-breadcrumb [home]="home" [model]="items" />
51
+ </div>
52
+ `,
53
+ standalone: true,
54
+ imports: [BreadcrumbModule]
55
+ })
56
+ export class BreadcrumbRouterDemo {
57
+ items: MenuItem[] = [{ label: 'Components' }, { label: 'Form' }, { label: 'InputText', routerLink: '/inputtext' }];
58
+ home: MenuItem = { icon: 'pi pi-home', routerLink: '/' };
59
+ }
60
+ ```
61
+
62
+ ## Template
63
+
64
+ Custom content can be placed inside the items using the item template. The divider between the items has its own separator template.
65
+
66
+ ```typescript
67
+ import { Component, OnInit } from '@angular/core';
68
+ import { BreadcrumbModule } from '@exhaustive-ui/core/breadcrumb';
69
+ import { MenuItem } from '@exhaustive-ui/core/api';
70
+
71
+ @Component({
72
+ template: `
73
+ <div class="card flex justify-center">
74
+ <p-breadcrumb [model]="items" [home]="home">
75
+ <ng-template #item let-item>
76
+ <a class="cursor-pointer" [routerLink]="item.url">
77
+ <i [class]="item.icon"></i>
78
+ </a>
79
+ </ng-template>
80
+ <ng-template #separator> / </ng-template>
81
+ </p-breadcrumb>
82
+ </div>
83
+ `,
84
+ standalone: true,
85
+ imports: [BreadcrumbModule]
86
+ })
87
+ export class BreadcrumbTemplateDemo implements OnInit {
88
+ items: MenuItem[] | undefined;
89
+ home: MenuItem | undefined;
90
+
91
+ ngOnInit() {
92
+ this.items = [{ icon: 'pi pi-sitemap' }, { icon: 'pi pi-book' }, { icon: 'pi pi-wallet' }, { icon: 'pi pi-shopping-bag' }, { icon: 'pi pi-calculator' }];
93
+ this.home = { icon: 'pi pi-home' };
94
+ }
95
+ }
96
+ ```
97
+
98
+ ## Breadcrumb
99
+
100
+ Breadcrumb provides contextual information about page hierarchy.
101
+
102
+ ### Props
103
+
104
+ | Name | Type | Default | Description |
105
+ |------|------|---------|-------------|
106
+ | dt | InputSignal<Object> | undefined | Defines scoped design tokens of the component. |
107
+ | unstyled | InputSignal<boolean> | undefined | Indicates whether the component should be rendered without styles. |
108
+ | pt | InputSignal<BreadcrumbPassThrough> | undefined | Used to pass attributes to DOM elements inside the component. |
109
+ | ptOptions | InputSignal<PassThroughOptions> | undefined | Used to configure passthrough(pt) options of the component. |
110
+ | model | InputSignal<MenuItem[]> | ... | An array of menuitems. |
111
+ | style | InputSignal<{ [klass: string]: any }> | ... | Inline style of the component. |
112
+ | styleClass | InputSignal<string> | ... | Style class of the component. |
113
+ | home | InputSignal<MenuItem> | ... | MenuItem configuration for the home icon. |
114
+ | homeAriaLabel | InputSignal<string> | ... | Defines a string that labels the home icon for accessibility. Defaults to the `aria.home` translation when the home item has no visible label. |
115
+
116
+ ### Emits
117
+
118
+ | Name | Parameters | Description |
119
+ |------|------------|-------------|
120
+ | onItemClick | event: BreadcrumbItemClickEvent | Fired when an item is selected. |
121
+
122
+ ### Templates
123
+
124
+ | Name | Type | Description |
125
+ |------|------|-------------|
126
+ | item | TemplateRef<BreadcrumbItemTemplateContext> | Custom item template. |
127
+ | separator | TemplateRef<void> | Custom separator template. |
128
+
129
+ ## Pass Through Options
130
+
131
+ | Name | Type | Description |
132
+ |------|------|-------------|
133
+ | root | PassThroughOption<HTMLElement, I> | Used to pass attributes to the root's DOM element. |
134
+ | list | PassThroughOption<HTMLOListElement, I> | Used to pass attributes to the list's DOM element. |
135
+ | homeItem | PassThroughOption<HTMLLIElement, I> | Used to pass attributes to the home item's DOM element. |
136
+ | item | PassThroughOption<HTMLLIElement, I> | Used to pass attributes to the item's DOM element. |
137
+ | itemLink | PassThroughOption<HTMLAnchorElement, I> | Used to pass attributes to the item link's DOM element. |
138
+ | itemIcon | PassThroughOption<SVGElement \| HTMLSpanElement, I> | Used to pass attributes to the item icon's DOM element. |
139
+ | itemLabel | PassThroughOption<HTMLSpanElement, I> | Used to pass attributes to the item label's DOM element. |
140
+ | separator | PassThroughOption<HTMLLIElement, I> | Used to pass attributes to the separator's DOM element. |
141
+ | separatorIcon | PassThroughOption<SVGElement, I> | Used to pass attributes to the separator icon's DOM element. |
142
+
143
+ ## Theming
144
+
145
+ ### CSS Classes
146
+
147
+ | Class | Description |
148
+ |-------|-------------|
149
+ | p-breadcrumb | Class name of the root element |
150
+ | p-breadcrumb-list | Class name of the list element |
151
+ | p-breadcrumb-home-item | Class name of the home item element |
152
+ | p-breadcrumb-separator | Class name of the separator element |
153
+ | p-breadcrumb-item | Class name of the item element |
154
+ | p-breadcrumb-item-link | Class name of the item link element |
155
+ | p-breadcrumb-item-icon | Class name of the item icon element |
156
+ | p-breadcrumb-item-label | Class name of the item label element |
157
+
158
+ ### Design Tokens
159
+
160
+ | Token | CSS Variable | Description |
161
+ |-------|--------------|-------------|
162
+ | breadcrumb.padding | --p-breadcrumb-padding | Padding of root |
163
+ | breadcrumb.background | --p-breadcrumb-background | Background of root |
164
+ | breadcrumb.gap | --p-breadcrumb-gap | Gap of root |
165
+ | breadcrumb.transition.duration | --p-breadcrumb-transition-duration | Transition duration of root |
166
+ | breadcrumb.item.color | --p-breadcrumb-item-color | Color of item |
167
+ | breadcrumb.item.hover.color | --p-breadcrumb-item-hover-color | Hover color of item |
168
+ | breadcrumb.item.border.radius | --p-breadcrumb-item-border-radius | Border radius of item |
169
+ | breadcrumb.item.gap | --p-breadcrumb-item-gap | Gap of item |
170
+ | breadcrumb.item.icon.color | --p-breadcrumb-item-icon-color | Icon color of item |
171
+ | breadcrumb.item.icon.hover.color | --p-breadcrumb-item-icon-hover-color | Icon hover color of item |
172
+ | breadcrumb.item.focus.ring.width | --p-breadcrumb-item-focus-ring-width | Focus ring width of item |
173
+ | breadcrumb.item.focus.ring.style | --p-breadcrumb-item-focus-ring-style | Focus ring style of item |
174
+ | breadcrumb.item.focus.ring.color | --p-breadcrumb-item-focus-ring-color | Focus ring color of item |
175
+ | breadcrumb.item.focus.ring.offset | --p-breadcrumb-item-focus-ring-offset | Focus ring offset of item |
176
+ | breadcrumb.item.focus.ring.shadow | --p-breadcrumb-item-focus-ring-shadow | Focus ring shadow of item |
177
+ | breadcrumb.separator.color | --p-breadcrumb-separator-color | Color of separator |
178
+