-
-
Notifications
You must be signed in to change notification settings - Fork 112
/
Copy pathslider-thumb.json
145 lines (145 loc) · 5.05 KB
/
slider-thumb.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
{
"name": "SliderThumb",
"description": "The draggable part of the the slider at the tip of the indicator.\nRenders a `<div>` element.",
"props": {
"aria-label": {
"type": "string",
"description": "The label for the input element."
},
"aria-labelledby": {
"type": "string"
},
"name": {
"type": "string"
},
"active": {
"type": "number",
"description": "The index of the active thumb."
},
"aria-valuetext": {
"type": "string",
"description": "A string value that provides a user-friendly name for the current value of the slider."
},
"getAriaLabel": {
"type": "((index: number) => string) | null",
"description": "Accepts a function which returns a string value that provides a user-friendly name for the input associated with the thumb"
},
"getAriaValueText": {
"type": "((formattedValue: string, value: number, index: number) => string) | null",
"description": "Accepts a function which returns a string value that provides a user-friendly name for the current value of the slider.\nThis is important for screen reader users."
},
"handleInputChange": {
"type": "((valueInput: number, index: number, event: KeyboardEvent<Element> | ChangeEvent<Element>) => void)"
},
"inputId": {
"type": "string"
},
"onBlur": {
"type": "FocusEventHandler<Element>"
},
"onFocus": {
"type": "FocusEventHandler<Element>"
},
"onKeyDown": {
"type": "KeyboardEventHandler<Element>"
},
"onPointerLeave": {
"type": "PointerEventHandler<Element>"
},
"onPointerOver": {
"type": "PointerEventHandler<Element>"
},
"tabIndex": {
"type": "number | null",
"default": "null",
"description": "Optional tab index attribute for the thumb components."
},
"values": {
"type": "number[]",
"description": "The value(s) of the slider"
},
"step": {
"type": "number",
"default": "1",
"description": "The step increment of the slider when incrementing or decrementing. It will snap\nto multiples of this value. Decimal values are supported."
},
"largeStep": {
"type": "number",
"default": "10",
"description": "The large step value of the slider when incrementing or decrementing while the shift key is held,\nor when using Page-Up or Page-Down keys. Snaps to multiples of this value."
},
"minStepsBetweenValues": {
"type": "number",
"description": "The minimum steps between values in a range slider."
},
"min": {
"type": "number",
"description": "The minimum allowed value of the slider."
},
"max": {
"type": "number",
"description": "The maximum allowed value of the slider."
},
"format": {
"type": "NumberFormatOptions | null",
"default": "null",
"description": "Options to format the input value."
},
"disabled": {
"type": "boolean"
},
"orientation": {
"type": "Orientation",
"default": "'horizontal'",
"description": "The component orientation."
},
"id": {
"type": "string"
},
"className": {
"type": "string | ((state: State) => string)",
"description": "CSS class applied to the element, or a function that\nreturns a class based on the component’s state."
},
"render": {
"type": "((props: DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>, inputProps: DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, state: State) => ReactElement) | ReactElement & { ref: Ref<Element> }",
"description": "Allows you to replace the component’s HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render."
}
},
"dataAttributes": {
"data-dragging": {
"description": "Present while the user is dragging."
},
"data-orientation": {
"description": "Indicates the orientation of the slider.",
"type": "'horizontal' | 'vertical'"
},
"data-disabled": {
"description": "Present when the slider is disabled."
},
"data-readonly": {
"description": "Present when the slider is readonly."
},
"data-required": {
"description": "Present when the slider is required."
},
"data-valid": {
"description": "Present when the slider is in valid state (when wrapped in Field.Root)."
},
"data-invalid": {
"description": "Present when the slider is in invalid state (when wrapped in Field.Root)."
},
"data-dirty": {
"description": "Present when the slider's value has changed (when wrapped in Field.Root)."
},
"data-touched": {
"description": "Present when the slider has been touched (when wrapped in Field.Root)."
},
"data-focused": {
"description": "Present when the slider is focused (when wrapped in Field.Root)."
},
"data-index": {
"description": "Indicates the index of the thumb in range sliders."
}
},
"cssVariables": {}
}