@primevue/mcp 4.5.5 → 5.0.0-rc.2

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 (173) hide show
  1. package/LICENSE.md +45 -21
  2. package/README.md +48 -250
  3. package/data/components.json +47269 -0
  4. package/data/llms/components/accordion.md +629 -0
  5. package/data/llms/components/animateonscroll.md +165 -0
  6. package/data/llms/components/autocomplete.md +995 -0
  7. package/data/llms/components/avatar.md +264 -0
  8. package/data/llms/components/badge.md +200 -0
  9. package/data/llms/components/blockui.md +99 -0
  10. package/data/llms/components/breadcrumb.md +269 -0
  11. package/data/llms/components/button.md +902 -0
  12. package/data/llms/components/card.md +209 -0
  13. package/data/llms/components/carousel.md +506 -0
  14. package/data/llms/components/cascadeselect.md +1207 -0
  15. package/data/llms/components/chart.md +1022 -0
  16. package/data/llms/components/checkbox.md +401 -0
  17. package/data/llms/components/chip.md +206 -0
  18. package/data/llms/components/colorpicker.md +213 -0
  19. package/data/llms/components/commandmenu.md +660 -0
  20. package/data/llms/components/compare.md +407 -0
  21. package/data/llms/components/confirmdialog.md +343 -0
  22. package/data/llms/components/confirmpopup.md +252 -0
  23. package/data/llms/components/contextmenu.md +522 -0
  24. package/data/llms/components/datatable.md +5266 -0
  25. package/data/llms/components/dataview.md +569 -0
  26. package/data/llms/components/datepicker.md +964 -0
  27. package/data/llms/components/deferredcontent.md +96 -0
  28. package/data/llms/components/dialog.md +702 -0
  29. package/data/llms/components/divider.md +152 -0
  30. package/data/llms/components/dock.md +488 -0
  31. package/data/llms/components/drawer.md +469 -0
  32. package/data/llms/components/dynamicdialog.md +214 -0
  33. package/data/llms/components/editor.md +205 -0
  34. package/data/llms/components/fieldset.md +253 -0
  35. package/data/llms/components/fileupload.md +459 -0
  36. package/data/llms/components/floatlabel.md +144 -0
  37. package/data/llms/components/fluid.md +104 -0
  38. package/data/llms/components/focustrap.md +59 -0
  39. package/data/llms/components/forms.md +344 -0
  40. package/data/llms/components/galleria.md +1119 -0
  41. package/data/llms/components/gallery.md +1003 -0
  42. package/data/llms/components/iconfield.md +283 -0
  43. package/data/llms/components/iftalabel.md +96 -0
  44. package/data/llms/components/image.md +179 -0
  45. package/data/llms/components/imagecompare.md +108 -0
  46. package/data/llms/components/inplace.md +183 -0
  47. package/data/llms/components/inputcolor.md +869 -0
  48. package/data/llms/components/inputgroup.md +419 -0
  49. package/data/llms/components/inputmask.md +345 -0
  50. package/data/llms/components/inputnumber.md +551 -0
  51. package/data/llms/components/inputotp.md +345 -0
  52. package/data/llms/components/inputpassword.md +738 -0
  53. package/data/llms/components/inputtags.md +432 -0
  54. package/data/llms/components/inputtext.md +569 -0
  55. package/data/llms/components/installation.md +1 -0
  56. package/data/llms/components/keyfilter.md +116 -0
  57. package/data/llms/components/knob.md +318 -0
  58. package/data/llms/components/label.md +151 -0
  59. package/data/llms/components/laravel.md +53 -0
  60. package/data/llms/components/listbox.md +636 -0
  61. package/data/llms/components/mask.md +203 -0
  62. package/data/llms/components/mcp.md +39 -0
  63. package/data/llms/components/megamenu.md +563 -0
  64. package/data/llms/components/menu.md +651 -0
  65. package/data/llms/components/menubar.md +446 -0
  66. package/data/llms/components/message.md +497 -0
  67. package/data/llms/components/metergroup.md +281 -0
  68. package/data/llms/components/multiselect.md +752 -0
  69. package/data/llms/components/orderlist.md +224 -0
  70. package/data/llms/components/organizationchart.md +418 -0
  71. package/data/llms/components/paginator.md +221 -0
  72. package/data/llms/components/panel.md +321 -0
  73. package/data/llms/components/panelmenu.md +703 -0
  74. package/data/llms/components/password.md +657 -0
  75. package/data/llms/components/picklist.md +286 -0
  76. package/data/llms/components/popover.md +145 -0
  77. package/data/llms/components/progressbar.md +242 -0
  78. package/data/llms/components/progressspinner.md +104 -0
  79. package/data/llms/components/radiobutton.md +427 -0
  80. package/data/llms/components/rating.md +312 -0
  81. package/data/llms/components/ripple.md +91 -0
  82. package/data/llms/components/scrollarea.md +700 -0
  83. package/data/llms/components/scrollpanel.md +131 -0
  84. package/data/llms/components/scrolltop.md +87 -0
  85. package/data/llms/components/select.md +1251 -0
  86. package/data/llms/components/selectbutton.md +268 -0
  87. package/data/llms/components/sidebar.md +2232 -0
  88. package/data/llms/components/skeleton.md +302 -0
  89. package/data/llms/components/slider.md +416 -0
  90. package/data/llms/components/speeddial.md +402 -0
  91. package/data/llms/components/splitbutton.md +840 -0
  92. package/data/llms/components/splitter.md +447 -0
  93. package/data/llms/components/stepper.md +551 -0
  94. package/data/llms/components/styleclass.md +226 -0
  95. package/data/llms/components/tabs.md +609 -0
  96. package/data/llms/components/tag.md +178 -0
  97. package/data/llms/components/terminal.md +123 -0
  98. package/data/llms/components/textarea.md +519 -0
  99. package/data/llms/components/tieredmenu.md +578 -0
  100. package/data/llms/components/timeline.md +494 -0
  101. package/data/llms/components/toast.md +472 -0
  102. package/data/llms/components/togglebutton.md +276 -0
  103. package/data/llms/components/toggleswitch.md +271 -0
  104. package/data/llms/components/toolbar.md +140 -0
  105. package/data/llms/components/tooltip.md +160 -0
  106. package/data/llms/components/tree.md +1076 -0
  107. package/data/llms/components/treeselect.md +660 -0
  108. package/data/llms/components/treetable.md +2493 -0
  109. package/data/llms/components/virtualscroller.md +265 -0
  110. package/data/llms/guides/autoimport.md +28 -0
  111. package/data/llms/guides/cdn.md +72 -0
  112. package/data/llms/guides/configuration.md +158 -0
  113. package/data/llms/guides/customicons.md +67 -0
  114. package/data/llms/guides/guides/accessibility.md +27 -0
  115. package/data/llms/guides/guides/animations.md +119 -0
  116. package/data/llms/guides/guides/rtl.md +7 -0
  117. package/data/llms/guides/icons.md +136 -0
  118. package/data/llms/guides/installation.md +3 -0
  119. package/data/llms/guides/laravel.md +66 -0
  120. package/data/llms/guides/llms.md +15 -0
  121. package/data/llms/guides/mcp.md +104 -0
  122. package/data/llms/guides/migration/v4.md +15 -0
  123. package/data/llms/guides/migration/v5.md +15 -0
  124. package/data/llms/guides/nuxt.md +141 -0
  125. package/data/llms/guides/passthrough.md +137 -0
  126. package/data/llms/guides/primeclt.md +43 -0
  127. package/data/llms/guides/tailwind.md +151 -0
  128. package/data/llms/guides/theming/styled.md +497 -0
  129. package/data/llms/guides/theming/unstyled.md +57 -0
  130. package/data/llms/guides/uikit.md +3 -0
  131. package/data/llms/guides/vite.md +90 -0
  132. package/data/llms/llms-full.txt +54465 -0
  133. package/data/llms/llms.txt +132 -0
  134. package/data/llms/pages/accessibility.md +27 -0
  135. package/data/llms/pages/animations.md +119 -0
  136. package/data/llms/pages/autoimport.md +28 -0
  137. package/data/llms/pages/cdn.md +72 -0
  138. package/data/llms/pages/configuration.md +158 -0
  139. package/data/llms/pages/contribution.md +31 -0
  140. package/data/llms/pages/customicons.md +67 -0
  141. package/data/llms/pages/designer.md +79 -0
  142. package/data/llms/pages/dynamicimports.md +7 -0
  143. package/data/llms/pages/forms.md +63 -0
  144. package/data/llms/pages/guides/accessibility.md +27 -0
  145. package/data/llms/pages/guides/animations.md +119 -0
  146. package/data/llms/pages/guides/rtl.md +7 -0
  147. package/data/llms/pages/icons.md +136 -0
  148. package/data/llms/pages/installation.md +3 -0
  149. package/data/llms/pages/introduction.md +23 -0
  150. package/data/llms/pages/laravel.md +66 -0
  151. package/data/llms/pages/llms.md +15 -0
  152. package/data/llms/pages/mcp.md +104 -0
  153. package/data/llms/pages/migration/v4.md +15 -0
  154. package/data/llms/pages/migration/v5.md +15 -0
  155. package/data/llms/pages/nuxt.md +141 -0
  156. package/data/llms/pages/passthrough.md +137 -0
  157. package/data/llms/pages/primeclt.md +43 -0
  158. package/data/llms/pages/rtl.md +7 -0
  159. package/data/llms/pages/setup.md +3 -0
  160. package/data/llms/pages/styled.md +497 -0
  161. package/data/llms/pages/tailwind.md +151 -0
  162. package/data/llms/pages/theming/styled.md +497 -0
  163. package/data/llms/pages/theming/unstyled.md +57 -0
  164. package/data/llms/pages/uikit.md +3 -0
  165. package/data/llms/pages/unstyled.md +57 -0
  166. package/data/llms/pages/v4.md +15 -0
  167. package/data/llms/pages/v5.md +15 -0
  168. package/data/llms/pages/vite.md +90 -0
  169. package/data/manifest.json +11117 -0
  170. package/data/mcp-data.json +55940 -0
  171. package/dist/index.d.ts +17 -1
  172. package/dist/index.js +66066 -72541
  173. package/package.json +10 -12
@@ -0,0 +1,902 @@
1
+ # Button
2
+
3
+ Button is an extension to standard button element with icons and theming.
4
+
5
+ ## Basic
6
+
7
+ Text to display on a button is provided as the default slot content.
8
+
9
+ ```vue
10
+ <template>
11
+ <div class="flex justify-center">
12
+ <Button>Submit</Button>
13
+ </div>
14
+ </template>
15
+ ```
16
+
17
+ ## Icons
18
+
19
+ Icons are placed inside the default slot. The position of the icon is expressed by slot order. Add the flex-col class to stack the icon and label vertically.
20
+
21
+ ```vue
22
+ <template>
23
+ <div class="flex flex-col items-center gap-4">
24
+ <div class="flex flex-wrap gap-4 justify-center">
25
+ <Button aria-label="Save">
26
+ <Home />
27
+ </Button>
28
+ <Button>
29
+ <User />
30
+ Profile
31
+ </Button>
32
+ <Button>
33
+ Save
34
+ <Check />
35
+ </Button>
36
+ </div>
37
+ <div class="flex flex-wrap gap-4 justify-center">
38
+ <Button class="flex-col">
39
+ <Search />
40
+ Search
41
+ </Button>
42
+ <Button class="flex-col">
43
+ Update
44
+ <Refresh />
45
+ </Button>
46
+ </div>
47
+ </div>
48
+ </template>
49
+
50
+ <script setup>
51
+ import Check from '@primeicons/vue/check';
52
+ import Home from '@primeicons/vue/home';
53
+ import Refresh from '@primeicons/vue/refresh';
54
+ import Search from '@primeicons/vue/search';
55
+ import User from '@primeicons/vue/user';
56
+ <\/script>
57
+ ```
58
+
59
+ ## Loading
60
+
61
+ Render a spinner inside the default slot while toggling disabled to express the busy state.
62
+
63
+ ```vue
64
+ <template>
65
+ <div class="flex flex-wrap gap-4 justify-center">
66
+ <Button type="button" :disabled="loading" @click="load">
67
+ <Spinner v-if="loading" class="animate-spin" />
68
+ <Check v-else />
69
+ {{ loading ? 'Loading...' : 'Search' }}
70
+ </Button>
71
+ <Button type="button" iconOnly :disabled="loading" @click="load">
72
+ <Spinner v-if="loading" class="animate-spin" />
73
+ <Check v-else />
74
+ </Button>
75
+ </div>
76
+ </template>
77
+
78
+ <script setup>
79
+ import { ref } from 'vue';
80
+ import Check from '@primeicons/vue/check';
81
+ import Spinner from '@primeicons/vue/spinner';
82
+
83
+ const loading = ref(false);
84
+
85
+ const load = () => {
86
+ loading.value = true;
87
+ setTimeout(() => {
88
+ loading.value = false;
89
+ }, 2000);
90
+ };
91
+ <\/script>
92
+ ```
93
+
94
+ ## Link
95
+
96
+ The button element can be displayed as a link element visually when the link property is present. If you need to customize the rendering, use the as to change the element or asChild for advanced templating.
97
+
98
+ ```vue
99
+ <template>
100
+ <div class="flex justify-center gap-4">
101
+ <Button variant="link">Link</Button>
102
+ <Button as="a" href="https://vuejs.org/" target="_blank" rel="noopener">External</Button>
103
+ <Button asChild v-slot="slotProps">
104
+ <RouterLink to="/" :class="slotProps.class">Router</RouterLink>
105
+ </Button>
106
+ </div>
107
+ </template>
108
+ ```
109
+
110
+ ## Severity
111
+
112
+ The severity property defines the variant of a button.
113
+
114
+ ```vue
115
+ <template>
116
+ <div class="flex justify-center flex-wrap gap-4">
117
+ <Button>Primary</Button>
118
+ <Button severity="secondary">Secondary</Button>
119
+ <Button severity="success">Success</Button>
120
+ <Button severity="info">Info</Button>
121
+ <Button severity="warn">Warn</Button>
122
+ <Button severity="help">Help</Button>
123
+ <Button severity="danger">Danger</Button>
124
+ <Button severity="contrast">Contrast</Button>
125
+ </div>
126
+ </template>
127
+ ```
128
+
129
+ ## Raised
130
+
131
+ Raised buttons display a shadow to indicate elevation.
132
+
133
+ ```vue
134
+ <template>
135
+ <div class="flex justify-center flex-wrap gap-4">
136
+ <Button raised>Primary</Button>
137
+ <Button severity="secondary" raised>Secondary</Button>
138
+ <Button severity="success" raised>Success</Button>
139
+ <Button severity="info" raised>Info</Button>
140
+ <Button severity="warn" raised>Warn</Button>
141
+ <Button severity="help" raised>Help</Button>
142
+ <Button severity="danger" raised>Danger</Button>
143
+ <Button severity="contrast" raised>Contrast</Button>
144
+ </div>
145
+ </template>
146
+ ```
147
+
148
+ ## Rounded
149
+
150
+ Rounded buttons have a circular border radius.
151
+
152
+ ```vue
153
+ <template>
154
+ <div class="flex justify-center flex-wrap gap-4">
155
+ <Button rounded>Primary</Button>
156
+ <Button severity="secondary" rounded>Secondary</Button>
157
+ <Button severity="success" rounded>Success</Button>
158
+ <Button severity="info" rounded>Info</Button>
159
+ <Button severity="warn" rounded>Warn</Button>
160
+ <Button severity="help" rounded>Help</Button>
161
+ <Button severity="danger" rounded>Danger</Button>
162
+ <Button severity="contrast" rounded>Contrast</Button>
163
+ </div>
164
+ </template>
165
+ ```
166
+
167
+ ## Text
168
+
169
+ Text buttons are displayed as textual elements.
170
+
171
+ ```vue
172
+ <template>
173
+ <div class="flex justify-center flex-wrap gap-4">
174
+ <Button variant="text">Primary</Button>
175
+ <Button severity="secondary" variant="text">Secondary</Button>
176
+ <Button severity="success" variant="text">Success</Button>
177
+ <Button severity="info" variant="text">Info</Button>
178
+ <Button severity="warn" variant="text">Warn</Button>
179
+ <Button severity="help" variant="text">Help</Button>
180
+ <Button severity="danger" variant="text">Danger</Button>
181
+ <Button severity="contrast" variant="text">Contrast</Button>
182
+ </div>
183
+ </template>
184
+ ```
185
+
186
+ ## Raised Text
187
+
188
+ Text buttons can be displayed elevated with the raised option.
189
+
190
+ ```vue
191
+ <template>
192
+ <div class="flex justify-center flex-wrap gap-4">
193
+ <Button variant="text" raised>Primary</Button>
194
+ <Button severity="secondary" variant="text" raised>Secondary</Button>
195
+ <Button severity="success" variant="text" raised>Success</Button>
196
+ <Button severity="info" variant="text" raised>Info</Button>
197
+ <Button severity="warn" variant="text" raised>Warn</Button>
198
+ <Button severity="help" variant="text" raised>Help</Button>
199
+ <Button severity="danger" variant="text" raised>Danger</Button>
200
+ <Button severity="contrast" variant="text" raised>Contrast</Button>
201
+ </div>
202
+ </template>
203
+ ```
204
+
205
+ ## Outlined
206
+
207
+ Outlined buttons display a border without a background initially.
208
+
209
+ ```vue
210
+ <template>
211
+ <div class="flex justify-center flex-wrap gap-4">
212
+ <Button variant="outlined">Primary</Button>
213
+ <Button severity="secondary" variant="outlined">Secondary</Button>
214
+ <Button severity="success" variant="outlined">Success</Button>
215
+ <Button severity="info" variant="outlined">Info</Button>
216
+ <Button severity="warn" variant="outlined">Warn</Button>
217
+ <Button severity="help" variant="outlined">Help</Button>
218
+ <Button severity="danger" variant="outlined">Danger</Button>
219
+ <Button severity="contrast" variant="outlined">Contrast</Button>
220
+ </div>
221
+ </template>
222
+ ```
223
+
224
+ ## Icon Only
225
+
226
+ Set the iconOnly prop to render the button as a square icon button without a label slot.
227
+
228
+ ```vue
229
+ <template>
230
+ <div>
231
+ <div class="flex justify-center flex-wrap gap-4 mb-6">
232
+ <Button iconOnly aria-label="Filter"><Check /></Button>
233
+ <Button iconOnly severity="secondary" aria-label="Bookmark"><Bookmark /></Button>
234
+ <Button iconOnly severity="success" aria-label="Search"><Search /></Button>
235
+ <Button iconOnly severity="info" aria-label="User"><User /></Button>
236
+ <Button iconOnly severity="warn" aria-label="Notification"><Bell /></Button>
237
+ <Button iconOnly severity="help" aria-label="Favorite"><Heart /></Button>
238
+ <Button iconOnly severity="danger" aria-label="Cancel"><Times /></Button>
239
+ <Button iconOnly severity="contrast" aria-label="Star"><Star /></Button>
240
+ </div>
241
+
242
+ <div class="flex justify-center flex-wrap gap-4 mb-6">
243
+ <Button iconOnly rounded aria-label="Filter"><Check /></Button>
244
+ <Button iconOnly rounded severity="secondary" aria-label="Bookmark"><Bookmark /></Button>
245
+ <Button iconOnly rounded severity="success" aria-label="Search"><Search /></Button>
246
+ <Button iconOnly rounded severity="info" aria-label="User"><User /></Button>
247
+ <Button iconOnly rounded severity="warn" aria-label="Notification"><Bell /></Button>
248
+ <Button iconOnly rounded severity="help" aria-label="Favorite"><Heart /></Button>
249
+ <Button iconOnly rounded severity="danger" aria-label="Cancel"><Times /></Button>
250
+ <Button iconOnly rounded severity="contrast" aria-label="Star"><Star /></Button>
251
+ </div>
252
+
253
+ <div class="flex justify-center flex-wrap gap-4 mb-6">
254
+ <Button iconOnly rounded variant="outlined" aria-label="Filter"><Check /></Button>
255
+ <Button iconOnly rounded variant="outlined" severity="secondary" aria-label="Bookmark"><Bookmark /></Button>
256
+ <Button iconOnly rounded variant="outlined" severity="success" aria-label="Search"><Search /></Button>
257
+ <Button iconOnly rounded variant="outlined" severity="info" aria-label="User"><User /></Button>
258
+ <Button iconOnly rounded variant="outlined" severity="warn" aria-label="Notification"><Bell /></Button>
259
+ <Button iconOnly rounded variant="outlined" severity="help" aria-label="Favorite"><Heart /></Button>
260
+ <Button iconOnly rounded variant="outlined" severity="danger" aria-label="Cancel"><Times /></Button>
261
+ <Button iconOnly rounded variant="outlined" severity="contrast" aria-label="Star"><Star /></Button>
262
+ </div>
263
+
264
+ <div class="flex justify-center flex-wrap gap-4 mb-6">
265
+ <Button iconOnly rounded raised aria-label="Filter"><Check /></Button>
266
+ <Button iconOnly rounded raised severity="secondary" aria-label="Bookmark"><Bookmark /></Button>
267
+ <Button iconOnly rounded raised severity="success" aria-label="Search"><Search /></Button>
268
+ <Button iconOnly rounded raised severity="info" aria-label="User"><User /></Button>
269
+ <Button iconOnly rounded raised severity="warn" aria-label="Notification"><Bell /></Button>
270
+ <Button iconOnly rounded raised severity="help" aria-label="Favorite"><Heart /></Button>
271
+ <Button iconOnly rounded raised severity="danger" aria-label="Cancel"><Times /></Button>
272
+ <Button iconOnly rounded raised severity="contrast" aria-label="Star"><Star /></Button>
273
+ </div>
274
+
275
+ <div class="flex justify-center flex-wrap gap-4">
276
+ <Button iconOnly rounded variant="text" aria-label="Filter"><Check /></Button>
277
+ <Button iconOnly rounded variant="text" severity="secondary" aria-label="Bookmark"><Bookmark /></Button>
278
+ <Button iconOnly rounded variant="text" severity="success" aria-label="Search"><Search /></Button>
279
+ <Button iconOnly rounded variant="text" severity="info" aria-label="User"><User /></Button>
280
+ <Button iconOnly rounded variant="text" severity="warn" aria-label="Notification"><Bell /></Button>
281
+ <Button iconOnly rounded variant="text" severity="help" aria-label="Favorite"><Heart /></Button>
282
+ <Button iconOnly rounded variant="text" severity="danger" aria-label="Cancel"><Times /></Button>
283
+ <Button iconOnly rounded variant="text" severity="contrast" aria-label="Star"><Star /></Button>
284
+ </div>
285
+ </div>
286
+ </template>
287
+
288
+ <script setup>
289
+ import Bell from '@primeicons/vue/bell';
290
+ import Bookmark from '@primeicons/vue/bookmark';
291
+ import Check from '@primeicons/vue/check';
292
+ import Heart from '@primeicons/vue/heart';
293
+ import Search from '@primeicons/vue/search';
294
+ import Star from '@primeicons/vue/star';
295
+ import Times from '@primeicons/vue/times';
296
+ import User from '@primeicons/vue/user';
297
+ <\/script>
298
+ ```
299
+
300
+ ## Badge
301
+
302
+ Badge component can be used to display a badge inside a button. OverlayBadge is used to display a badge on a button.
303
+
304
+ ```vue
305
+ <template>
306
+ <div class="flex justify-center flex-wrap gap-4">
307
+ <Button type="button">
308
+ Emails
309
+ <Badge value="2" severity="secondary" shape="circle" />
310
+ </Button>
311
+ <Button type="button" variant="outlined">
312
+ <Users />
313
+ Messages
314
+ <Badge value="2" severity="contrast" shape="circle" />
315
+ </Button>
316
+ <OverlayBadge severity="info" class="animate-pulse">
317
+ <Button type="button" variant="outlined" iconOnly>
318
+ <Bell />
319
+ </Button>
320
+ </OverlayBadge>
321
+ </div>
322
+ </template>
323
+
324
+ <script setup>
325
+ import Bell from '@primeicons/vue/bell';
326
+ import Users from '@primeicons/vue/users';
327
+ <\/script>
328
+ ```
329
+
330
+ ## Button Group
331
+
332
+ Multiple buttons are grouped when wrapped inside an element with ButtonGroup component.
333
+
334
+ ```vue
335
+ <template>
336
+ <div class="flex justify-center">
337
+ <ButtonGroup>
338
+ <Button>
339
+ <Check />
340
+ Save
341
+ </Button>
342
+ <Button>
343
+ <Trash />
344
+ Delete
345
+ </Button>
346
+ <Button>
347
+ <Times />
348
+ Cancel
349
+ </Button>
350
+ </ButtonGroup>
351
+ </div>
352
+ </template>
353
+
354
+ <script setup>
355
+ import Check from '@primeicons/vue/check';
356
+ import Times from '@primeicons/vue/times';
357
+ import Trash from '@primeicons/vue/trash';
358
+ <\/script>
359
+ ```
360
+
361
+ ## Sizes
362
+
363
+ Button provides small and large sizes as alternatives to the base.
364
+
365
+ ```vue
366
+ <template>
367
+ <div class="flex flex-wrap items-center justify-center gap-4">
368
+ <Button size="small">
369
+ <Check />
370
+ Small
371
+ </Button>
372
+ <Button>
373
+ <Check />
374
+ Normal
375
+ </Button>
376
+ <Button size="large">
377
+ <Check />
378
+ Large
379
+ </Button>
380
+ </div>
381
+ </template>
382
+
383
+ <script setup>
384
+ import Check from '@primeicons/vue/check';
385
+ <\/script>
386
+ ```
387
+
388
+ ## Disabled
389
+
390
+ When disabled is present, the element cannot be used.
391
+
392
+ ```vue
393
+ <template>
394
+ <div class="flex justify-center">
395
+ <Button disabled>Submit</Button>
396
+ </div>
397
+ </template>
398
+ ```
399
+
400
+ ## Template
401
+
402
+ Custom content inside a button is defined as children.
403
+
404
+ ```vue
405
+ <template>
406
+ <div class="flex justify-center">
407
+ <Button variant="outlined" class="border-2!">
408
+ <svg width="35" height="40" viewBox="0 0 35 40" fill="none" xmlns="http://www.w3.org/2000/svg">
409
+ <path
410
+ d="M25.87 18.05L23.16 17.45L25.27 20.46V29.78L32.49 23.76V13.53L29.18 14.73L25.87 18.04V18.05ZM25.27 35.49L29.18 31.58V27.67L25.27 30.98V35.49ZM20.16 17.14H20.03H20.17H20.16ZM30.1 5.19L34.89 4.81L33.08 12.33L24.1 15.67L30.08 5.2L30.1 5.19ZM5.72 14.74L2.41 13.54V23.77L9.63 29.79V20.47L11.74 17.46L9.03 18.06L5.72 14.75V14.74ZM9.63 30.98L5.72 27.67V31.58L9.63 35.49V30.98ZM4.8 5.2L10.78 15.67L1.81 12.33L0 4.81L4.79 5.19L4.8 5.2ZM24.37 21.05V34.59L22.56 37.29L20.46 39.4H14.44L12.34 37.29L10.53 34.59V21.05L12.42 18.23L17.45 26.8L22.48 18.23L24.37 21.05ZM22.85 0L22.57 0.69L17.45 13.08L12.33 0.69L12.05 0H22.85Z"
411
+ fill="var(--p-primary-color)"
412
+ />
413
+ <path
414
+ d="M30.69 4.21L24.37 4.81L22.57 0.69L22.86 0H26.48L30.69 4.21ZM23.75 5.67L22.66 3.08L18.05 14.24V17.14H19.7H20.03H20.16H20.2L24.1 15.7L30.11 5.19L23.75 5.67ZM4.21002 4.21L10.53 4.81L12.33 0.69L12.05 0H8.43002L4.22002 4.21H4.21002ZM21.9 17.4L20.6 18.2H14.3L13 17.4L12.4 18.2L12.42 18.23L17.45 26.8L22.48 18.23L22.5 18.2L21.9 17.4ZM4.79002 5.19L10.8 15.7L14.7 17.14H14.74H15.2H16.85V14.24L12.24 3.09L11.15 5.68L4.79002 5.2V5.19Z"
415
+ fill="var(--p-text-color)"
416
+ />
417
+ </svg>
418
+ </Button>
419
+ </div>
420
+ </template>
421
+ ```
422
+
423
+ ## Accessibility
424
+
425
+ Screen Reader Button component renders a native button element that implicitly includes any passed prop. Text to describe the button is defined with the aria-label prop. If the button is icon only or custom templating is used, it is recommended to use aria-label so that screen readers would be able to read the element properly. Keyboard Support Key Function tab Moves focus to the button. enter Activates the button. space Activates the button.
426
+
427
+ ```vue
428
+ <template>
429
+ <Button aria-label="Submit">
430
+ <Check />
431
+ </Button>
432
+
433
+ <Button>
434
+ <Check />
435
+ Submit
436
+ </Button>
437
+
438
+ <Button class="youtube p-0" aria-label="Youtube">
439
+ <Youtube class="px-2" />
440
+ <span class="px-4">Youtube</span>
441
+ </Button>
442
+ </template>
443
+ ```
444
+
445
+ ## Button API
446
+
447
+ ### Props
448
+
449
+ | Name |Type |Default |Description |
450
+ | --- | --- | --- | --- |
451
+ | aria-activedescendant | string | - | Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application. |
452
+ | aria-atomic | Booleanish | - | Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute. |
453
+ | aria-autocomplete | "none" \| "inline" \| "list" \| "both" | - | Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made. |
454
+ | aria-busy | Booleanish | - | Indicates an element is being modified and that assistive technologies MAY want to wait until the modifications are complete before exposing them to the user. |
455
+ | aria-checked | Booleanish \| "mixed" | - | Indicates the current "checked" state of checkboxes, radio buttons, and other widgets. |
456
+ | aria-colcount | Numberish | - | Defines the total number of columns in a table, grid, or treegrid. |
457
+ | aria-colindex | Numberish | - | Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid. |
458
+ | aria-colspan | Numberish | - | Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid. |
459
+ | aria-controls | string | - | Identifies the element (or elements) whose contents or presence are controlled by the current element. |
460
+ | aria-current | Booleanish \| "page" \| "step" \| "location" \| "date" \| "time" | - | Indicates the element that represents the current item within a container or set of related elements. |
461
+ | aria-describedby | string | - | Identifies the element (or elements) that describes the object. |
462
+ | aria-details | string | - | Identifies the element that provides a detailed, extended description for the object. |
463
+ | aria-disabled | Booleanish | - | Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable. |
464
+ | aria-dropeffect | "link" \| "none" \| "copy" \| "execute" \| "move" \| "popup" | - | Indicates what functions can be performed when a dragged object is released on the drop target. |
465
+ | aria-errormessage | string | - | Identifies the element that provides an error message for the object. |
466
+ | aria-expanded | Booleanish | - | Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. |
467
+ | aria-flowto | string | - | Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order. |
468
+ | aria-grabbed | Booleanish | - | Indicates an element's "grabbed" state in a drag-and-drop operation. |
469
+ | aria-haspopup | Booleanish \| "menu" \| "listbox" \| "tree" \| "grid" \| "dialog" | - | Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element. |
470
+ | aria-hidden | Booleanish | - | Indicates whether the element is exposed to an accessibility API. |
471
+ | aria-invalid | Booleanish \| "grammar" \| "spelling" | - | Indicates the entered value does not conform to the format expected by the application. |
472
+ | aria-keyshortcuts | string | - | Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element. |
473
+ | aria-label | string | - | Defines a string value that labels the current element. |
474
+ | aria-labelledby | string | - | Identifies the element (or elements) that labels the current element. |
475
+ | aria-level | Numberish | - | Defines the hierarchical level of an element within a structure. |
476
+ | aria-live | "off" \| "assertive" \| "polite" | - | Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region. |
477
+ | aria-modal | Booleanish | - | Indicates whether an element is modal when displayed. |
478
+ | aria-multiline | Booleanish | - | Indicates whether a text box accepts multiple lines of input or only a single line. |
479
+ | aria-multiselectable | Booleanish | - | Indicates that the user may select more than one item from the current selectable descendants. |
480
+ | aria-orientation | "horizontal" \| "vertical" | - | Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous. |
481
+ | aria-owns | string | - | Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship between DOM elements where the DOM hierarchy cannot be used to represent the relationship. |
482
+ | aria-placeholder | string | - | Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format. |
483
+ | aria-posinset | Numberish | - | Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. |
484
+ | aria-pressed | Booleanish \| "mixed" | - | Indicates the current "pressed" state of toggle buttons. |
485
+ | aria-readonly | Booleanish | - | Indicates that the element is not editable, but is otherwise operable. |
486
+ | aria-relevant | "text" \| "additions" \| "additions removals" \| "additions text" \| "all" \| "removals" \| "removals additions" \| "removals text" \| "text additions" \| "text removals" | - | Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified. |
487
+ | aria-required | Booleanish | - | Indicates that user input is required on the element before a form may be submitted. |
488
+ | aria-roledescription | string | - | Defines a human-readable, author-localized description for the role of an element. |
489
+ | aria-rowcount | Numberish | - | Defines the total number of rows in a table, grid, or treegrid. |
490
+ | aria-rowindex | Numberish | - | Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid. |
491
+ | aria-rowspan | Numberish | - | Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid. |
492
+ | aria-selected | Booleanish | - | Indicates the current "selected" state of various widgets. |
493
+ | aria-setsize | Numberish | - | Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM. |
494
+ | aria-sort | "none" \| "ascending" \| "descending" \| "other" | - | Indicates if items in a table or grid are sorted in ascending or descending order. |
495
+ | aria-valuemax | Numberish | - | Defines the maximum allowed value for a range widget. |
496
+ | aria-valuemin | Numberish | - | Defines the minimum allowed value for a range widget. |
497
+ | aria-valuenow | Numberish | - | Defines the current value for a range widget. |
498
+ | aria-valuetext | string | - | Defines the human readable text alternative of aria-valuenow for a range widget. |
499
+ | innerHTML | string | - | |
500
+ | accesskey | string | - | |
501
+ | contenteditable | Booleanish \| "inherit" \| "plaintext-only" | - | |
502
+ | contextmenu | string | - | |
503
+ | dir | string | - | |
504
+ | draggable | Booleanish | - | |
505
+ | enterkeyhint | "enter" \| "done" \| "go" \| "next" \| "previous" \| "search" \| "send" | - | |
506
+ | enterKeyHint | "enter" \| "done" \| "go" \| "next" \| "previous" \| "search" \| "send" | - | |
507
+ | hidden | "" \| Booleanish \| "hidden" \| "until-found" | - | |
508
+ | id | string | - | |
509
+ | inert | Booleanish | - | |
510
+ | lang | string | - | |
511
+ | placeholder | string | - | |
512
+ | spellcheck | Booleanish | - | |
513
+ | tabindex | Numberish | - | |
514
+ | title | string | - | |
515
+ | translate | "yes" \| "no" | - | |
516
+ | radiogroup | string | - | |
517
+ | role | string | - | |
518
+ | about | string | - | |
519
+ | datatype | string | - | |
520
+ | inlist | any | - | |
521
+ | prefix | string | - | |
522
+ | property | string | - | |
523
+ | resource | string | - | |
524
+ | typeof | string | - | |
525
+ | vocab | string | - | |
526
+ | autocapitalize | string | - | |
527
+ | autocorrect | string | - | |
528
+ | autosave | string | - | |
529
+ | color | string | - | |
530
+ | itemprop | string | - | |
531
+ | itemscope | Booleanish | - | |
532
+ | itemtype | string | - | |
533
+ | itemid | string | - | |
534
+ | itemref | string | - | |
535
+ | results | Numberish | - | |
536
+ | security | string | - | |
537
+ | unselectable | "on" \| "off" | - | |
538
+ | inputmode | "text" \| "search" \| "none" \| "tel" \| "url" \| "email" \| "numeric" \| "decimal" | - | Hints at the type of data that might be entered by the user while editing the element or its contents |
539
+ | is | string | - | Specify that a standard HTML element should behave like a defined custom built-in element |
540
+ | exportparts | string | - | |
541
+ | part | string | - | |
542
+ | autofocus | Booleanish | - | |
543
+ | disabled | Booleanish | - | |
544
+ | form | string | - | |
545
+ | formaction | string | - | |
546
+ | formenctype | string | - | |
547
+ | formmethod | string | - | |
548
+ | formnovalidate | Booleanish | - | |
549
+ | formtarget | string | - | |
550
+ | name | string | - | |
551
+ | type | "submit" \| "reset" \| "button" | - | |
552
+ | value | string \| number \| readonly string[] | - | |
553
+ | onCopy | Function | - | |
554
+ | onCut | Function | - | |
555
+ | onPaste | Function | - | |
556
+ | onCompositionend | Function | - | |
557
+ | onCompositionstart | Function | - | |
558
+ | onCompositionupdate | Function | - | |
559
+ | onDrag | Function | - | |
560
+ | onDragend | Function | - | |
561
+ | onDragenter | Function | - | |
562
+ | onDragexit | Function | - | |
563
+ | onDragleave | Function | - | |
564
+ | onDragover | Function | - | |
565
+ | onDragstart | Function | - | |
566
+ | onDrop | Function | - | |
567
+ | onFocus | Function | - | |
568
+ | onFocusin | Function | - | |
569
+ | onFocusout | Function | - | |
570
+ | onBlur | Function | - | |
571
+ | onChange | Function | - | |
572
+ | onBeforeinput | Function | - | |
573
+ | onFormdata | Function | - | |
574
+ | onInput | Function | - | |
575
+ | onReset | Function | - | |
576
+ | onSubmit | Function | - | |
577
+ | onInvalid | Function | - | |
578
+ | onFullscreenchange | Function | - | |
579
+ | onFullscreenerror | Function | - | |
580
+ | onLoad | Function | - | |
581
+ | onError | Function | - | |
582
+ | onKeydown | Function | - | |
583
+ | onKeypress | Function | - | |
584
+ | onKeyup | Function | - | |
585
+ | onDblclick | Function | - | |
586
+ | onMousedown | Function | - | |
587
+ | onMouseenter | Function | - | |
588
+ | onMouseleave | Function | - | |
589
+ | onMousemove | Function | - | |
590
+ | onMouseout | Function | - | |
591
+ | onMouseover | Function | - | |
592
+ | onMouseup | Function | - | |
593
+ | onAbort | Function | - | |
594
+ | onCanplay | Function | - | |
595
+ | onCanplaythrough | Function | - | |
596
+ | onDurationchange | Function | - | |
597
+ | onEmptied | Function | - | |
598
+ | onEncrypted | Function | - | |
599
+ | onEnded | Function | - | |
600
+ | onLoadeddata | Function | - | |
601
+ | onLoadedmetadata | Function | - | |
602
+ | onLoadstart | Function | - | |
603
+ | onPause | Function | - | |
604
+ | onPlay | Function | - | |
605
+ | onPlaying | Function | - | |
606
+ | onProgress | Function | - | |
607
+ | onRatechange | Function | - | |
608
+ | onSeeked | Function | - | |
609
+ | onSeeking | Function | - | |
610
+ | onStalled | Function | - | |
611
+ | onSuspend | Function | - | |
612
+ | onTimeupdate | Function | - | |
613
+ | onVolumechange | Function | - | |
614
+ | onWaiting | Function | - | |
615
+ | onSelect | Function | - | |
616
+ | onScroll | Function | - | |
617
+ | onScrollend | Function | - | |
618
+ | onTouchcancel | Function | - | |
619
+ | onTouchend | Function | - | |
620
+ | onTouchmove | Function | - | |
621
+ | onTouchstart | Function | - | |
622
+ | onAuxclick | Function | - | |
623
+ | onClick | Function | - | |
624
+ | onContextmenu | Function | - | |
625
+ | onGotpointercapture | Function | - | |
626
+ | onLostpointercapture | Function | - | |
627
+ | onPointerdown | Function | - | |
628
+ | onPointermove | Function | - | |
629
+ | onPointerup | Function | - | |
630
+ | onPointercancel | Function | - | |
631
+ | onPointerenter | Function | - | |
632
+ | onPointerleave | Function | - | |
633
+ | onPointerover | Function | - | |
634
+ | onPointerout | Function | - | |
635
+ | onBeforetoggle | Function | - | |
636
+ | onToggle | Function | - | |
637
+ | onWheel | Function | - | |
638
+ | onAnimationcancel | Function | - | |
639
+ | onAnimationstart | Function | - | |
640
+ | onAnimationend | Function | - | |
641
+ | onAnimationiteration | Function | - | |
642
+ | onSecuritypolicyviolation | Function | - | |
643
+ | onTransitioncancel | Function | - | |
644
+ | onTransitionend | Function | - | |
645
+ | onTransitionrun | Function | - | |
646
+ | onTransitionstart | Function | - | |
647
+ | style | any | - | Inline style of the button. |
648
+ | class | any | - | Style class of the button. |
649
+ | iconOnly | boolean | false | When enabled, the button is rendered as icon-only (square footprint) regardless of slot content. |
650
+ | link | boolean | false | Add a link style to the button. |
651
+ | severity | HintedString<"secondary" \| "info" \| "success" \| "warn" \| "danger" \| "contrast" \| "help"> | - | Defines the style of the button. |
652
+ | raised | boolean | false | Add a shadow to indicate elevation. |
653
+ | rounded | boolean | false | Add a circular border radius to the button. |
654
+ | text | boolean | false | Add a textual class to the button without a background initially. |
655
+ | outlined | boolean | false | Add a border class without a background initially. |
656
+ | size | HintedString<"small" \| "large"> | - | Defines the size of the button. |
657
+ | variant | HintedString<"outlined" \| "text" \| "link"> | undefined | Specifies the variant of the component. |
658
+ | fluid | boolean | null | Spans 100% width of the container when enabled. |
659
+ | as | string \| Component | BUTTON | Use to change the HTML tag of root element. |
660
+ | asChild | boolean | false | When enabled, it changes the default rendered element for the one passed as a child element. |
661
+ | dt | any | - | It generates scoped CSS variables using design tokens for the component. |
662
+ | pt | PassThrough<ButtonPassThroughOptions<any>> | - | Used to pass attributes to DOM elements inside the component. |
663
+ | ptOptions | any | - | Used to configure passthrough(pt) options of the component. |
664
+ | unstyled | boolean | false | When enabled, it removes component related styles in the core. |
665
+ | label | string | - | Text of the button. |
666
+ | icon | string | - | Name of the icon. |
667
+ | iconPos | HintedString<"left" \| "right" \| "top" \| "bottom"> | left | Position of the icon. |
668
+ | iconClass | string \| object | - | Style class of the icon. |
669
+ | badge | string | - | Value of the badge. |
670
+ | badgeClass | string \| object | - | Style class of the badge. |
671
+ | badgeSeverity | null \| HintedString<"secondary" \| "info" \| "success" \| "warn" \| "danger" \| "contrast"> | - | Severity type of the badge. |
672
+ | loading | boolean | false | Whether the button is in loading state. |
673
+ | loadingIcon | string | - | Icon to display in loading state. |
674
+
675
+ ### Pass Through Options
676
+
677
+ | Name |Type |Description |
678
+ | --- | --- | --- |
679
+ | root | ButtonPassThroughOptionType<T> | Used to pass attributes to the root's DOM element. |
680
+ | loadingIcon | ButtonPassThroughOptionType<T> | Used to pass attributes to the loading icon's DOM element. |
681
+ | icon | ButtonPassThroughOptionType<T> | Used to pass attributes to the icon's DOM element. |
682
+ | label | ButtonPassThroughOptionType<T> | Used to pass attributes to the label's DOM element. |
683
+ | pcBadge | ButtonPassThroughOptionType<T> | Used to pass attributes to the Badge component. |
684
+ | hooks | any | Used to manage all lifecycle hooks. |
685
+
686
+ ### Theming
687
+
688
+ ### CSS Classes
689
+
690
+ | Class |Description |
691
+ | --- | --- |
692
+ | p-button | Class name of the root element |
693
+ | p-button-loading-icon | Class name of the loading icon element |
694
+ | p-button-icon | Class name of the icon element |
695
+ | p-button-label | Class name of the label element |
696
+
697
+ ### Design Tokens
698
+
699
+ | Token |CSS Variable |Description |
700
+ | --- | --- | --- |
701
+ | button.border.radius | --p-button-border-radius | Border radius of root |
702
+ | button.rounded.border.radius | --p-button-rounded-border-radius | Rounded border radius of root |
703
+ | button.gap | --p-button-gap | Gap of root |
704
+ | button.padding.x | --p-button-padding-x | Padding x of root |
705
+ | button.padding.y | --p-button-padding-y | Padding y of root |
706
+ | button.icon.only.width | --p-button-icon-only-width | Icon only width of root |
707
+ | button.icon.only.width | --p-button-icon-only-width | Font size of root |
708
+ | button.sm.font.size | --p-button-sm-font-size | Sm font size of root |
709
+ | button.sm.padding.x | --p-button-sm-padding-x | Sm padding x of root |
710
+ | button.sm.padding.y | --p-button-sm-padding-y | Sm padding y of root |
711
+ | button.sm.icon.only.width | --p-button-sm-icon-only-width | Sm icon only width of root |
712
+ | button.lg.font.size | --p-button-lg-font-size | Lg font size of root |
713
+ | button.lg.padding.x | --p-button-lg-padding-x | Lg padding x of root |
714
+ | button.lg.padding.y | --p-button-lg-padding-y | Lg padding y of root |
715
+ | button.lg.icon.only.width | --p-button-lg-icon-only-width | Lg icon only width of root |
716
+ | button.label.font.weight | --p-button-label-font-weight | Label font weight of root |
717
+ | button.raised.shadow | --p-button-raised-shadow | Raised shadow of root |
718
+ | button.focus.ring.width | --p-button-focus-ring-width | Focus ring width of root |
719
+ | button.focus.ring.style | --p-button-focus-ring-style | Focus ring style of root |
720
+ | button.focus.ring.offset | --p-button-focus-ring-offset | Focus ring offset of root |
721
+ | button.badge.size | --p-button-badge-size | Badge size of root |
722
+ | button.transition.duration | --p-button-transition-duration | Transition duration of root |
723
+ | button.primary.background | --p-button-primary-background | Primary background of root |
724
+ | button.primary.hover.background | --p-button-primary-hover-background | Primary hover background of root |
725
+ | button.primary.active.background | --p-button-primary-active-background | Primary active background of root |
726
+ | button.primary.border.color | --p-button-primary-border-color | Primary border color of root |
727
+ | button.primary.hover.border.color | --p-button-primary-hover-border-color | Primary hover border color of root |
728
+ | button.primary.active.border.color | --p-button-primary-active-border-color | Primary active border color of root |
729
+ | button.primary.color | --p-button-primary-color | Primary color of root |
730
+ | button.primary.hover.color | --p-button-primary-hover-color | Primary hover color of root |
731
+ | button.primary.active.color | --p-button-primary-active-color | Primary active color of root |
732
+ | button.primary.focus.ring.color | --p-button-primary-focus-ring-color | Primary focus ring color of root |
733
+ | button.primary.focus.ring.shadow | --p-button-primary-focus-ring-shadow | Primary focus ring shadow of root |
734
+ | button.secondary.background | --p-button-secondary-background | Secondary background of root |
735
+ | button.secondary.hover.background | --p-button-secondary-hover-background | Secondary hover background of root |
736
+ | button.secondary.active.background | --p-button-secondary-active-background | Secondary active background of root |
737
+ | button.secondary.border.color | --p-button-secondary-border-color | Secondary border color of root |
738
+ | button.secondary.hover.border.color | --p-button-secondary-hover-border-color | Secondary hover border color of root |
739
+ | button.secondary.active.border.color | --p-button-secondary-active-border-color | Secondary active border color of root |
740
+ | button.secondary.color | --p-button-secondary-color | Secondary color of root |
741
+ | button.secondary.hover.color | --p-button-secondary-hover-color | Secondary hover color of root |
742
+ | button.secondary.active.color | --p-button-secondary-active-color | Secondary active color of root |
743
+ | button.secondary.focus.ring.color | --p-button-secondary-focus-ring-color | Secondary focus ring color of root |
744
+ | button.secondary.focus.ring.shadow | --p-button-secondary-focus-ring-shadow | Secondary focus ring shadow of root |
745
+ | button.info.background | --p-button-info-background | Info background of root |
746
+ | button.info.hover.background | --p-button-info-hover-background | Info hover background of root |
747
+ | button.info.active.background | --p-button-info-active-background | Info active background of root |
748
+ | button.info.border.color | --p-button-info-border-color | Info border color of root |
749
+ | button.info.hover.border.color | --p-button-info-hover-border-color | Info hover border color of root |
750
+ | button.info.active.border.color | --p-button-info-active-border-color | Info active border color of root |
751
+ | button.info.color | --p-button-info-color | Info color of root |
752
+ | button.info.hover.color | --p-button-info-hover-color | Info hover color of root |
753
+ | button.info.active.color | --p-button-info-active-color | Info active color of root |
754
+ | button.info.focus.ring.color | --p-button-info-focus-ring-color | Info focus ring color of root |
755
+ | button.info.focus.ring.shadow | --p-button-info-focus-ring-shadow | Info focus ring shadow of root |
756
+ | button.success.background | --p-button-success-background | Success background of root |
757
+ | button.success.hover.background | --p-button-success-hover-background | Success hover background of root |
758
+ | button.success.active.background | --p-button-success-active-background | Success active background of root |
759
+ | button.success.border.color | --p-button-success-border-color | Success border color of root |
760
+ | button.success.hover.border.color | --p-button-success-hover-border-color | Success hover border color of root |
761
+ | button.success.active.border.color | --p-button-success-active-border-color | Success active border color of root |
762
+ | button.success.color | --p-button-success-color | Success color of root |
763
+ | button.success.hover.color | --p-button-success-hover-color | Success hover color of root |
764
+ | button.success.active.color | --p-button-success-active-color | Success active color of root |
765
+ | button.success.focus.ring.color | --p-button-success-focus-ring-color | Success focus ring color of root |
766
+ | button.success.focus.ring.shadow | --p-button-success-focus-ring-shadow | Success focus ring shadow of root |
767
+ | button.warn.background | --p-button-warn-background | Warn background of root |
768
+ | button.warn.hover.background | --p-button-warn-hover-background | Warn hover background of root |
769
+ | button.warn.active.background | --p-button-warn-active-background | Warn active background of root |
770
+ | button.warn.border.color | --p-button-warn-border-color | Warn border color of root |
771
+ | button.warn.hover.border.color | --p-button-warn-hover-border-color | Warn hover border color of root |
772
+ | button.warn.active.border.color | --p-button-warn-active-border-color | Warn active border color of root |
773
+ | button.warn.color | --p-button-warn-color | Warn color of root |
774
+ | button.warn.hover.color | --p-button-warn-hover-color | Warn hover color of root |
775
+ | button.warn.active.color | --p-button-warn-active-color | Warn active color of root |
776
+ | button.warn.focus.ring.color | --p-button-warn-focus-ring-color | Warn focus ring color of root |
777
+ | button.warn.focus.ring.shadow | --p-button-warn-focus-ring-shadow | Warn focus ring shadow of root |
778
+ | button.help.background | --p-button-help-background | Help background of root |
779
+ | button.help.hover.background | --p-button-help-hover-background | Help hover background of root |
780
+ | button.help.active.background | --p-button-help-active-background | Help active background of root |
781
+ | button.help.border.color | --p-button-help-border-color | Help border color of root |
782
+ | button.help.hover.border.color | --p-button-help-hover-border-color | Help hover border color of root |
783
+ | button.help.active.border.color | --p-button-help-active-border-color | Help active border color of root |
784
+ | button.help.color | --p-button-help-color | Help color of root |
785
+ | button.help.hover.color | --p-button-help-hover-color | Help hover color of root |
786
+ | button.help.active.color | --p-button-help-active-color | Help active color of root |
787
+ | button.help.focus.ring.color | --p-button-help-focus-ring-color | Help focus ring color of root |
788
+ | button.help.focus.ring.shadow | --p-button-help-focus-ring-shadow | Help focus ring shadow of root |
789
+ | button.danger.background | --p-button-danger-background | Danger background of root |
790
+ | button.danger.hover.background | --p-button-danger-hover-background | Danger hover background of root |
791
+ | button.danger.active.background | --p-button-danger-active-background | Danger active background of root |
792
+ | button.danger.border.color | --p-button-danger-border-color | Danger border color of root |
793
+ | button.danger.hover.border.color | --p-button-danger-hover-border-color | Danger hover border color of root |
794
+ | button.danger.active.border.color | --p-button-danger-active-border-color | Danger active border color of root |
795
+ | button.danger.color | --p-button-danger-color | Danger color of root |
796
+ | button.danger.hover.color | --p-button-danger-hover-color | Danger hover color of root |
797
+ | button.danger.active.color | --p-button-danger-active-color | Danger active color of root |
798
+ | button.danger.focus.ring.color | --p-button-danger-focus-ring-color | Danger focus ring color of root |
799
+ | button.danger.focus.ring.shadow | --p-button-danger-focus-ring-shadow | Danger focus ring shadow of root |
800
+ | button.contrast.background | --p-button-contrast-background | Contrast background of root |
801
+ | button.contrast.hover.background | --p-button-contrast-hover-background | Contrast hover background of root |
802
+ | button.contrast.active.background | --p-button-contrast-active-background | Contrast active background of root |
803
+ | button.contrast.border.color | --p-button-contrast-border-color | Contrast border color of root |
804
+ | button.contrast.hover.border.color | --p-button-contrast-hover-border-color | Contrast hover border color of root |
805
+ | button.contrast.active.border.color | --p-button-contrast-active-border-color | Contrast active border color of root |
806
+ | button.contrast.color | --p-button-contrast-color | Contrast color of root |
807
+ | button.contrast.hover.color | --p-button-contrast-hover-color | Contrast hover color of root |
808
+ | button.contrast.active.color | --p-button-contrast-active-color | Contrast active color of root |
809
+ | button.contrast.focus.ring.color | --p-button-contrast-focus-ring-color | Contrast focus ring color of root |
810
+ | button.contrast.focus.ring.shadow | --p-button-contrast-focus-ring-shadow | Contrast focus ring shadow of root |
811
+ | button.outlined.primary.hover.background | --p-button-outlined-primary-hover-background | Primary hover background of outlined |
812
+ | button.outlined.primary.active.background | --p-button-outlined-primary-active-background | Primary active background of outlined |
813
+ | button.outlined.primary.border.color | --p-button-outlined-primary-border-color | Primary border color of outlined |
814
+ | button.outlined.primary.color | --p-button-outlined-primary-color | Primary color of outlined |
815
+ | button.outlined.secondary.hover.background | --p-button-outlined-secondary-hover-background | Secondary hover background of outlined |
816
+ | button.outlined.secondary.active.background | --p-button-outlined-secondary-active-background | Secondary active background of outlined |
817
+ | button.outlined.secondary.border.color | --p-button-outlined-secondary-border-color | Secondary border color of outlined |
818
+ | button.outlined.secondary.color | --p-button-outlined-secondary-color | Secondary color of outlined |
819
+ | button.outlined.success.hover.background | --p-button-outlined-success-hover-background | Success hover background of outlined |
820
+ | button.outlined.success.active.background | --p-button-outlined-success-active-background | Success active background of outlined |
821
+ | button.outlined.success.border.color | --p-button-outlined-success-border-color | Success border color of outlined |
822
+ | button.outlined.success.color | --p-button-outlined-success-color | Success color of outlined |
823
+ | button.outlined.info.hover.background | --p-button-outlined-info-hover-background | Info hover background of outlined |
824
+ | button.outlined.info.active.background | --p-button-outlined-info-active-background | Info active background of outlined |
825
+ | button.outlined.info.border.color | --p-button-outlined-info-border-color | Info border color of outlined |
826
+ | button.outlined.info.color | --p-button-outlined-info-color | Info color of outlined |
827
+ | button.outlined.warn.hover.background | --p-button-outlined-warn-hover-background | Warn hover background of outlined |
828
+ | button.outlined.warn.active.background | --p-button-outlined-warn-active-background | Warn active background of outlined |
829
+ | button.outlined.warn.border.color | --p-button-outlined-warn-border-color | Warn border color of outlined |
830
+ | button.outlined.warn.color | --p-button-outlined-warn-color | Warn color of outlined |
831
+ | button.outlined.help.hover.background | --p-button-outlined-help-hover-background | Help hover background of outlined |
832
+ | button.outlined.help.active.background | --p-button-outlined-help-active-background | Help active background of outlined |
833
+ | button.outlined.help.border.color | --p-button-outlined-help-border-color | Help border color of outlined |
834
+ | button.outlined.help.color | --p-button-outlined-help-color | Help color of outlined |
835
+ | button.outlined.danger.hover.background | --p-button-outlined-danger-hover-background | Danger hover background of outlined |
836
+ | button.outlined.danger.active.background | --p-button-outlined-danger-active-background | Danger active background of outlined |
837
+ | button.outlined.danger.border.color | --p-button-outlined-danger-border-color | Danger border color of outlined |
838
+ | button.outlined.danger.color | --p-button-outlined-danger-color | Danger color of outlined |
839
+ | button.outlined.contrast.hover.background | --p-button-outlined-contrast-hover-background | Contrast hover background of outlined |
840
+ | button.outlined.contrast.active.background | --p-button-outlined-contrast-active-background | Contrast active background of outlined |
841
+ | button.outlined.contrast.border.color | --p-button-outlined-contrast-border-color | Contrast border color of outlined |
842
+ | button.outlined.contrast.color | --p-button-outlined-contrast-color | Contrast color of outlined |
843
+ | button.outlined.plain.hover.background | --p-button-outlined-plain-hover-background | Plain hover background of outlined |
844
+ | button.outlined.plain.active.background | --p-button-outlined-plain-active-background | Plain active background of outlined |
845
+ | button.outlined.plain.border.color | --p-button-outlined-plain-border-color | Plain border color of outlined |
846
+ | button.outlined.plain.color | --p-button-outlined-plain-color | Plain color of outlined |
847
+ | button.text.primary.hover.background | --p-button-text-primary-hover-background | Primary hover background of text |
848
+ | button.text.primary.active.background | --p-button-text-primary-active-background | Primary active background of text |
849
+ | button.text.primary.color | --p-button-text-primary-color | Primary color of text |
850
+ | button.text.secondary.hover.background | --p-button-text-secondary-hover-background | Secondary hover background of text |
851
+ | button.text.secondary.active.background | --p-button-text-secondary-active-background | Secondary active background of text |
852
+ | button.text.secondary.color | --p-button-text-secondary-color | Secondary color of text |
853
+ | button.text.success.hover.background | --p-button-text-success-hover-background | Success hover background of text |
854
+ | button.text.success.active.background | --p-button-text-success-active-background | Success active background of text |
855
+ | button.text.success.color | --p-button-text-success-color | Success color of text |
856
+ | button.text.info.hover.background | --p-button-text-info-hover-background | Info hover background of text |
857
+ | button.text.info.active.background | --p-button-text-info-active-background | Info active background of text |
858
+ | button.text.info.color | --p-button-text-info-color | Info color of text |
859
+ | button.text.warn.hover.background | --p-button-text-warn-hover-background | Warn hover background of text |
860
+ | button.text.warn.active.background | --p-button-text-warn-active-background | Warn active background of text |
861
+ | button.text.warn.color | --p-button-text-warn-color | Warn color of text |
862
+ | button.text.help.hover.background | --p-button-text-help-hover-background | Help hover background of text |
863
+ | button.text.help.active.background | --p-button-text-help-active-background | Help active background of text |
864
+ | button.text.help.color | --p-button-text-help-color | Help color of text |
865
+ | button.text.danger.hover.background | --p-button-text-danger-hover-background | Danger hover background of text |
866
+ | button.text.danger.active.background | --p-button-text-danger-active-background | Danger active background of text |
867
+ | button.text.danger.color | --p-button-text-danger-color | Danger color of text |
868
+ | button.text.contrast.hover.background | --p-button-text-contrast-hover-background | Contrast hover background of text |
869
+ | button.text.contrast.active.background | --p-button-text-contrast-active-background | Contrast active background of text |
870
+ | button.text.contrast.color | --p-button-text-contrast-color | Contrast color of text |
871
+ | button.text.plain.hover.background | --p-button-text-plain-hover-background | Plain hover background of text |
872
+ | button.text.plain.active.background | --p-button-text-plain-active-background | Plain active background of text |
873
+ | button.text.plain.color | --p-button-text-plain-color | Plain color of text |
874
+ | button.link.color | --p-button-link-color | Color of link |
875
+ | button.link.hover.color | --p-button-link-hover-color | Hover color of link |
876
+ | button.link.active.color | --p-button-link-active-color | Active color of link |
877
+
878
+ ## Button Group API
879
+
880
+ ### Props
881
+
882
+ | Name |Type |Default |Description |
883
+ | --- | --- | --- | --- |
884
+ | dt | any | - | It generates scoped CSS variables using design tokens for the component. |
885
+ | pt | PassThrough<ButtonGroupPassThroughOptions> | - | Used to pass attributes to DOM elements inside the component. |
886
+ | ptOptions | any | - | Used to configure passthrough(pt) options of the component. |
887
+ | unstyled | boolean | false | When enabled, it removes component related styles in the core. |
888
+
889
+ ### Pass Through Options
890
+
891
+ | Name |Type |Description |
892
+ | --- | --- | --- |
893
+ | root | ButtonGroupPassThroughOptionType | Used to pass attributes to the root's DOM element. |
894
+ | hooks | any | Used to manage all lifecycle hooks. |
895
+
896
+ ### Theming
897
+
898
+ ### CSS Classes
899
+
900
+ | Class |Description |
901
+ | --- | --- |
902
+ | p-buttongroup | Class name of the root element |