@@ -26,10 +26,35 @@ import Track from './SliderTrack.vue'
2626 * Slider component with sub-components for range input controls.
2727 *
2828 * @see https://0.vuetifyjs.com/components/slider
29+ *
30+ * @example
31+ * ```vue
32+ * <script setup lang="ts">
33+ * import { Slider } from '@vuetify/v0'
34+ * import { ref } from 'vue'
35+ *
36+ * const value = ref([50])
37+ * </script>
38+ *
39+ * <template>
40+ * <Slider.Root v-model="value" :min="0" :max="100">
41+ * <Slider.Track>
42+ * <Slider.Range />
43+ * </Slider.Track>
44+ * <Slider.Thumb />
45+ * </Slider.Root>
46+ * </template>
47+ * ```
2948 */
3049export const Slider = {
3150 /**
32- * Root component for sliders. Creates context and bridges v-model.
51+ * Root component for sliders.
52+ *
53+ * Creates slider context, provides it to child components, and
54+ * bridges v-model. Value is always `number[]`: single thumb = `[50]`,
55+ * range = `[25, 75]`. Configure min, max, step, and orientation via
56+ * props. When `name` prop is provided, automatically renders hidden
57+ * inputs for form submission.
3358 *
3459 * @see https://0.vuetifyjs.com/components/slider
3560 *
@@ -54,7 +79,11 @@ export const Slider = {
5479 */
5580 Root,
5681 /**
57- * Track element. Handles click-to-position interaction.
82+ * Track element that contains the Range and handles click-to-position.
83+ *
84+ * On pointerdown, calculates the value from pointer position, snaps
85+ * the nearest thumb to that value, and initiates drag. Must contain
86+ * Slider.Range as a child.
5887 *
5988 * @see https://0.vuetifyjs.com/components/slider#anatomy
6089 *
@@ -69,6 +98,10 @@ export const Slider = {
6998 /**
7099 * Filled region between thumb positions.
71100 *
101+ * For single-thumb sliders, fills from min to the thumb value.
102+ * For range sliders, fills between the lowest and highest thumb
103+ * values. Must be used within a Slider.Track component.
104+ *
72105 * @see https://0.vuetifyjs.com/components/slider#anatomy
73106 *
74107 * @example
@@ -80,7 +113,13 @@ export const Slider = {
80113 */
81114 Range,
82115 /**
83- * Draggable thumb control. Auto-registers with parent Root.
116+ * Draggable thumb control with keyboard navigation.
117+ *
118+ * Auto-registers with parent Root to receive its index. Supports
119+ * pointer drag and full keyboard navigation (Arrow, Page, Home/End).
120+ * Provides ARIA slider attributes including per-thumb constrained
121+ * valuemin/valuemax for multi-thumb sliders. Render multiple Thumbs
122+ * for range sliders.
84123 *
85124 * @see https://0.vuetifyjs.com/components/slider#anatomy
86125 *
@@ -91,7 +130,11 @@ export const Slider = {
91130 */
92131 Thumb,
93132 /**
94- * Hidden native input for form submission. Auto-rendered by Root when `name` is set.
133+ * Hidden native input for form submission.
134+ *
135+ * Auto-rendered by Root when `name` prop is provided — one input
136+ * per thumb value. Can also be used explicitly for custom form
137+ * integration.
95138 *
96139 * @see https://0.vuetifyjs.com/components/slider#form-integration
97140 * @internal
0 commit comments