@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,416 @@
1
+ # Slider
2
+
3
+ Slider is a component to provide input by dragging a handle along a track.
4
+
5
+ ## Basic
6
+
7
+ Select a numeric value by dragging a handle along a track. Two-way binding is defined using the standard v-model directive.
8
+
9
+ ```vue
10
+ <template>
11
+ <Slider v-model="value" class="max-w-3xs mx-auto w-full" />
12
+ </template>
13
+
14
+ <script setup>
15
+ import { ref } from 'vue';
16
+
17
+ const value = ref(50);
18
+ <\/script>
19
+ ```
20
+
21
+ ## Step
22
+
23
+ Size of each movement is defined with the step property.
24
+
25
+ ```vue
26
+ <template>
27
+ <Slider v-model="value" :step="20" class="max-w-3xs mx-auto w-full" />
28
+ </template>
29
+
30
+ <script setup>
31
+ import { ref } from 'vue';
32
+
33
+ const value = ref(20);
34
+ <\/script>
35
+ ```
36
+
37
+ ## Range
38
+
39
+ When the range property is present, slider provides two handles to define two values. In range mode, the value should be an array instead of a single value.
40
+
41
+ ```vue
42
+ <template>
43
+ <Slider v-model="rangeValues" range class="max-w-3xs mx-auto w-full" />
44
+ </template>
45
+
46
+ <script setup>
47
+ import { ref } from 'vue';
48
+
49
+ const rangeValues = ref([20, 80]);
50
+ <\/script>
51
+ ```
52
+
53
+ ## Handles Distance
54
+
55
+ The minStepsBetweenHandles property defines the minimum number of steps between handles in range mode.
56
+
57
+ ```vue
58
+ <template>
59
+ <Slider v-model="rangeValues" range :minStepsBetweenHandles="20" class="max-w-3xs mx-auto w-full" />
60
+ </template>
61
+
62
+ <script setup>
63
+ import { ref } from 'vue';
64
+
65
+ const rangeValues = ref([20, 80]);
66
+ <\/script>
67
+ ```
68
+
69
+ ## Vertical
70
+
71
+ Default layout of slider is horizontal , use orientation property for the alternative vertical mode.
72
+
73
+ ```vue
74
+ <template>
75
+ <div class="grid grid-cols-3 h-56 gap-4 w-fit mx-auto">
76
+ <div v-for="slider in sliders" :key="slider.label" class="flex flex-col items-center justify-center gap-3">
77
+ <Slider v-model="slider.value" orientation="vertical" />
78
+ <span class="font-mono text-xs uppercase text-surface-500">{{ slider.label }}</span>
79
+ </div>
80
+ </div>
81
+ </template>
82
+
83
+ <script setup>
84
+ import { ref } from 'vue';
85
+
86
+ const sliders = ref([
87
+ { label: 'Bass', value: 40 },
88
+ { label: 'Mid', value: 70 },
89
+ { label: 'Treble', value: 55 }
90
+ ]);
91
+ <\/script>
92
+ ```
93
+
94
+ ## Disabled
95
+
96
+ When disabled is present, the element cannot be edited and focused.
97
+
98
+ ```vue
99
+ <template>
100
+ <div class="max-w-3xs w-full mx-auto space-y-12">
101
+ <div>
102
+ <h5 class="mb-2 text-sm font-medium">Disabled Slider</h5>
103
+ <Slider v-model="value" disabled />
104
+ </div>
105
+ <div>
106
+ <h5 class="mb-2 text-sm font-medium">Disabled All Handles</h5>
107
+ <Slider v-model="rangeValues" range disabled />
108
+ </div>
109
+ <div>
110
+ <h5 class="mb-2 text-sm font-medium">Disabled Single Handle</h5>
111
+ <Slider v-model="rangeValues2" range disabledMinHandle />
112
+ </div>
113
+ </div>
114
+ </template>
115
+
116
+ <script setup>
117
+ import { ref } from 'vue';
118
+
119
+ const value = ref(50);
120
+ const rangeValues = ref([20, 80]);
121
+ const rangeValues2 = ref([20, 80]);
122
+ <\/script>
123
+ ```
124
+
125
+ ## Controlled
126
+
127
+ Slider is connected to an InputNumber using two-way binding.
128
+
129
+ ```vue
130
+ <template>
131
+ <div class="max-w-3xs w-full mx-auto">
132
+ <InputNumber v-model="value" :showButtons="false" fluid class="mb-4" />
133
+ <Slider v-model="value" class="w-full" />
134
+ </div>
135
+ </template>
136
+
137
+ <script setup>
138
+ import { ref } from 'vue';
139
+
140
+ const value = ref(50);
141
+ <\/script>
142
+ ```
143
+
144
+ ## Value Change
145
+
146
+ The change event is triggered during drag, while slideend is fired when the drag operation completes.
147
+
148
+ ```vue
149
+ <template>
150
+ <div class="max-w-3xs mx-auto w-full flex flex-col items-center space-y-4">
151
+ <div class="text-sm text-surface-500 font-mono">change: {{ value }}</div>
152
+ <div class="text-sm text-surface-500 font-mono">slideend: {{ endValue }}</div>
153
+ <Slider v-model="value" @change="onChange" @slideend="onSlideEnd" class="w-full" />
154
+ </div>
155
+ </template>
156
+
157
+ <script setup>
158
+ import { ref } from 'vue';
159
+
160
+ const value = ref(50);
161
+ const endValue = ref(50);
162
+
163
+ const onChange = (event) => {
164
+ value.value = event;
165
+ };
166
+
167
+ const onSlideEnd = (event) => {
168
+ endValue.value = event.value;
169
+ };
170
+ <\/script>
171
+ ```
172
+
173
+ ## Custom
174
+
175
+ Slider is customized with the pt property to override the style of each section.
176
+
177
+ ```vue
178
+ <template>
179
+ <div>
180
+ <div class="max-w-xs mx-auto w-full space-y-16">
181
+ <Slider
182
+ v-model="value1"
183
+ :pt="{
184
+ track: { class: 'h-2! bg-blue-100! dark:bg-blue-950!' },
185
+ range: { class: 'bg-blue-500!' },
186
+ handle: { class: 'before:hidden! border-2! border-blue-500! bg-surface-0! dark:bg-surface-900! rotate-45! rounded-md!' }
187
+ }"
188
+ />
189
+
190
+ <Slider
191
+ v-model="value2"
192
+ :pt="{
193
+ track: { class: 'h-2! bg-amber-100! dark:bg-amber-950!' },
194
+ range: { class: 'bg-amber-500!' },
195
+ handle: { class: 'before:hidden! w-4! h-5! border-2! border-amber-500! bg-surface-0! dark:bg-surface-900! rounded-sm!' }
196
+ }"
197
+ />
198
+
199
+ <div class="relative">
200
+ <VolumeUp class="text-surface-400 absolute left-2 top-1/2 -translate-y-1/2 z-10" />
201
+ <Slider
202
+ v-model="value3"
203
+ class="h-8! rounded-full!"
204
+ :pt="{
205
+ track: { class: 'h-full! rounded-full! border border-surface-100 dark:border-surface-900 bg-surface-100! dark:bg-surface-900!' },
206
+ range: { class: 'rounded-full! bg-surface-0!', style: { width: \`clamp(2rem, calc(\${value3}% + 1rem), 100%)\` } },
207
+ handle: {
208
+ class: 'z-20 h-[calc(100%+2px)]! dark:h-full! aspect-square! w-auto! before:hidden! bg-surface-0! border! border-surface-200! shadow-sm',
209
+ style: { insetInlineStart: \`clamp(1rem, \${value3}%, calc(100% - 1rem))\` }
210
+ }
211
+ }"
212
+ />
213
+ </div>
214
+
215
+ <div class="relative">
216
+ <div class="h-8! flex! items-center gap-1 w-full bg-transparent! cursor-grab active:cursor-grabbing relative">
217
+ <span class="absolute left-0 top-0 bg-linear-to-r from-sky-200 via-indigo-200 to-blue-400 h-full rounded-full" :style="{ width: \`clamp(0px, calc(\${value4}% - 1.25rem), calc(100% - 2.25rem))\` }"></span>
218
+ <span
219
+ class="absolute top-0 h-full bg-surface-100 dark:bg-surface-900 rounded-full"
220
+ :style="{
221
+ left: \`clamp(2.25rem, calc(\${value4}% + 1.25rem), 100%)\`,
222
+ width: \`calc(100% - clamp(2.25rem, calc(\${value4}% + 1.25rem), 100%))\`
223
+ }"
224
+ ></span>
225
+ </div>
226
+ <Slider
227
+ v-model="value4"
228
+ class="absolute! inset-0 h-8!"
229
+ :pt="{
230
+ track: { class: 'h-8! flex! items-center gap-1 w-full bg-transparent! cursor-grab active:cursor-grabbing' },
231
+ range: { class: 'hidden!' },
232
+ handle: {
233
+ class: 'before:hidden! size-8! shrink-0 bg-surface-0! dark:bg-surface-800! border border-surface-200! dark:border-surface-700! shadow-sm',
234
+ style: { insetInlineStart: \`clamp(1rem, \${value4}%, calc(100% - 1rem))\` }
235
+ }
236
+ }"
237
+ />
238
+ </div>
239
+ </div>
240
+ </div>
241
+ </template>
242
+
243
+ <script setup>
244
+ import { ref } from 'vue';
245
+
246
+ const value1 = ref(50);
247
+ const value2 = ref(50);
248
+ const value3 = ref(50);
249
+ const value4 = ref(50);
250
+ <\/script>
251
+ ```
252
+
253
+ ## Filter
254
+
255
+ Image filter implementation using multiple sliders.
256
+
257
+ ```vue
258
+ <template>
259
+ <div class="flex flex-col items-center justify-center">
260
+ <img alt="user header" class="w-80 rounded mb-6" src="https://primefaces.org/cdn/primevue/images/galleria/galleria1.jpg" :style="filterStyle" />
261
+ <SelectButton v-model="filter" :options="filterOptions" optionLabel="label" optionValue="value" />
262
+ <Slider v-model="filterValues[filter]" class="max-w-56 mt-4" :min="0" :max="200" />
263
+ </div>
264
+ </template>
265
+
266
+ <script setup>
267
+ import { ref, computed } from 'vue';
268
+
269
+ const filter = ref(0);
270
+ const filterValues = ref([100, 100, 0]);
271
+ const filterOptions = ref([
272
+ { label: 'Contrast', value: 0 },
273
+ { label: 'Brightness', value: 1 },
274
+ { label: 'Sepia', value: 2 }
275
+ ]);
276
+ const filterStyle = computed(() => {
277
+ return {
278
+ filter: \`contrast(\${filterValues.value[0]}%) brightness(\${filterValues.value[1]}%) sepia(\${filterValues.value[2]}%)\`
279
+ };
280
+ });
281
+ <\/script>
282
+ ```
283
+
284
+ ## Forms
285
+
286
+ Slider integrates seamlessly with the PrimeVue Forms library.
287
+
288
+ ```vue
289
+ <template>
290
+ <div class="flex justify-center">
291
+ <Form v-slot="$form" :resolver="resolver" :initialValues="initialValues" @submit="onFormSubmit" class="flex flex-col gap-4 w-full sm:w-56">
292
+ <div class="flex flex-col gap-4">
293
+ <Slider name="value" />
294
+ <Message v-if="$form.value?.invalid" severity="error" size="small" variant="simple">{{ $form.value.error?.message }}</Message>
295
+ </div>
296
+ <Button type="submit" severity="secondary">Submit</Button>
297
+ </Form>
298
+ </div>
299
+ </template>
300
+
301
+ <script setup>
302
+ import { ref } from 'vue';
303
+ import { zodResolver } from '@primevue/forms/resolvers/zod';
304
+ import { useToast } from "primevue/usetoast";
305
+ import { z } from 'zod';
306
+
307
+ const toast = useToast();
308
+ const initialValues = ref({
309
+ value: 0
310
+ });
311
+ const resolver = ref(zodResolver(
312
+ z.object({
313
+ value: z.number().gt(25, { message: 'Must be greater than 25.' })
314
+ })
315
+ ));
316
+
317
+ const onFormSubmit = ({ valid }) => {
318
+ if (valid) {
319
+ toast.add({ severity: 'success', summary: 'Form is submitted.', life: 3000 });
320
+ }
321
+ };
322
+ <\/script>
323
+ ```
324
+
325
+ ## Accessibility
326
+
327
+ Screen Reader Slider element component uses slider role on the handle in addition to the aria-orientation , aria-valuemin , aria-valuemax and aria-valuenow attributes. Value to describe the component can be defined using aria-labelledby and aria-label props. Keyboard Support Key Function tab Moves focus to the slider. left arrow up arrow Decrements the value. right arrow down arrow Increments the value. home Set the minimum value. end Set the maximum value. page up Increments the value by 10 steps. page down Decrements the value by 10 steps.
328
+
329
+ ```vue
330
+ <template>
331
+ <span id="label_number">Number</span>
332
+ <Slider aria-labelledby="label_number" />
333
+
334
+ <Slider aria-label="Number" />
335
+ </template>
336
+ ```
337
+
338
+ ## Slider API
339
+
340
+ ### Props
341
+
342
+ | Name |Type |Default |Description |
343
+ | --- | --- | --- | --- |
344
+ | modelValue | number \| number[] | - | Value of the component. |
345
+ | defaultValue | number \| number[] | - | The default value for the input when not controlled by `modelValue` . |
346
+ | name | string | - | The name attribute for the element, typically used in form submissions. |
347
+ | min | number | 0 | Mininum boundary value. |
348
+ | max | number | 100 | Maximum boundary value. |
349
+ | orientation | HintedString<"horizontal" \| "vertical"> | horizontal | Orientation of the slider. |
350
+ | step | number | 1 | Step factor to increment/decrement the value. |
351
+ | range | boolean | false | When speficed, allows two boundary values to be picked. |
352
+ | readonly | boolean | false | When present, the component cannot be edited while it is still focusable and visually unchanged. |
353
+ | disabledMinHandle | boolean | false | When present and `range` is enabled, disables only the minimum (start) handle while keeping the maximum handle interactive. |
354
+ | disabledMaxHandle | boolean | false | When present and `range` is enabled, disables only the maximum (end) handle while keeping the minimum handle interactive. |
355
+ | minStepsBetweenHandles | number | 0 | The minimum permitted steps between multiple handles in range mode. |
356
+ | inputId | string | - | Identifier of the underlying hidden input element. In range mode, applied to the first handle's input. |
357
+ | inputClass | string \| object | - | Style class of the hidden input element. |
358
+ | inputStyle | object | - | Inline style of the hidden input element. |
359
+ | invalid | boolean | false | When present, it specifies that the component should have invalid state style. |
360
+ | disabled | boolean | false | When present, it specifies that the component should be disabled. |
361
+ | tabindex | number | - | Index of the element in tabbing order. |
362
+ | ariaLabelledby | string | - | Establishes relationships between the component and label(s) where its value should be one or more element IDs. |
363
+ | ariaLabel | string | - | Used to define a string that labels the element. |
364
+ | formControl | Record<string, any> | - | Form control object, typically used for handling validation and form state. |
365
+ | dt | any | - | It generates scoped CSS variables using design tokens for the component. |
366
+ | pt | PassThrough<SliderPassThroughOptions> | - | Used to pass attributes to DOM elements inside the component. |
367
+ | ptOptions | any | - | Used to configure passthrough(pt) options of the component. |
368
+ | unstyled | boolean | false | When enabled, it removes component related styles in the core. |
369
+
370
+ ### Pass Through Options
371
+
372
+ | Name |Type |Description |
373
+ | --- | --- | --- |
374
+ | root | SliderPassThroughOptionType | Used to pass attributes to the root's DOM element. |
375
+ | range | SliderPassThroughOptionType | Used to pass attributes to the range's DOM element. |
376
+ | handle | SliderPassThroughOptionType | Used to pass attributes to the handle's DOM element. |
377
+ | startHandler | SliderPassThroughOptionType | Used to pass attributes to the start handler's DOM element. |
378
+ | endHandler | SliderPassThroughOptionType | Used to pass attributes to the end handler's DOM element. |
379
+ | input | SliderPassThroughOptionType | Used to pass attributes to the hidden input's DOM element. |
380
+ | hooks | any | Used to manage all lifecycle hooks. |
381
+
382
+ ### Theming
383
+
384
+ ### CSS Classes
385
+
386
+ | Class |Description |
387
+ | --- | --- |
388
+ | p-slider | Class name of the root element |
389
+ | p-slider-range | Class name of the range element |
390
+ | p-slider-handle | Class name of the handle element |
391
+
392
+ ### Design Tokens
393
+
394
+ | Token |CSS Variable |Description |
395
+ | --- | --- | --- |
396
+ | slider.transition.duration | --p-slider-transition-duration | Transition duration of root |
397
+ | slider.track.background | --p-slider-track-background | Background of track |
398
+ | slider.track.border.radius | --p-slider-track-border-radius | Border radius of track |
399
+ | slider.track.size | --p-slider-track-size | Size of track |
400
+ | slider.range.background | --p-slider-range-background | Background of range |
401
+ | slider.handle.width | --p-slider-handle-width | Width of handle |
402
+ | slider.handle.height | --p-slider-handle-height | Height of handle |
403
+ | slider.handle.border.radius | --p-slider-handle-border-radius | Border radius of handle |
404
+ | slider.handle.background | --p-slider-handle-background | Background of handle |
405
+ | slider.handle.hover.background | --p-slider-handle-hover-background | Hover background of handle |
406
+ | slider.handle.content.border.radius | --p-slider-handle-content-border-radius | Content border radius of handle |
407
+ | slider.handle.content.background | --p-slider-handle-content-background | Background of handle |
408
+ | slider.handle.content.hover.background | --p-slider-handle-content-hover-background | Content hover background of handle |
409
+ | slider.handle.content.width | --p-slider-handle-content-width | Content width of handle |
410
+ | slider.handle.content.height | --p-slider-handle-content-height | Content height of handle |
411
+ | slider.handle.content.shadow | --p-slider-handle-content-shadow | Content shadow of handle |
412
+ | slider.handle.focus.ring.width | --p-slider-handle-focus-ring-width | Focus ring width of handle |
413
+ | slider.handle.focus.ring.style | --p-slider-handle-focus-ring-style | Focus ring style of handle |
414
+ | slider.handle.focus.ring.color | --p-slider-handle-focus-ring-color | Focus ring color of handle |
415
+ | slider.handle.focus.ring.offset | --p-slider-handle-focus-ring-offset | Focus ring offset of handle |
416
+ | slider.handle.focus.ring.shadow | --p-slider-handle-focus-ring-shadow | Focus ring shadow of handle |