forked from mui/base-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnumber-field-root.json
124 lines (124 loc) · 4.38 KB
/
number-field-root.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
{
"name": "NumberFieldRoot",
"description": "Groups all parts of the number field and manages its state.\nRenders a `<div>` element.",
"props": {
"name": {
"type": "string",
"description": "Identifies the field when a form is submitted."
},
"defaultValue": {
"type": "number",
"description": "The uncontrolled value of the field when it’s initially rendered.\n\nTo render a controlled number field, use the `value` prop instead."
},
"value": {
"type": "number",
"description": "The raw numeric value of the field."
},
"onValueChange": {
"type": "(value, event) => void",
"description": "Callback fired when the number value changes."
},
"step": {
"type": "number",
"default": "1;",
"description": "Amount to increment and decrement with the buttons and arrow keys,\nor to scrub with pointer movement in the scrub area."
},
"smallStep": {
"type": "number",
"default": "0.1",
"description": "The small step value of the input element when incrementing while the meta key is held. Snaps\nto multiples of this value."
},
"largeStep": {
"type": "number",
"default": "10",
"description": "The large step value of the input element when incrementing while the shift key is held. Snaps\nto multiples of this value."
},
"min": {
"type": "number",
"description": "The minimum value of the input element."
},
"max": {
"type": "number",
"description": "The maximum value of the input element."
},
"allowWheelScrub": {
"type": "boolean",
"default": "false",
"description": "Whether to allow the user to scrub the input value with the mouse wheel while focused and\nhovering over the input."
},
"format": {
"type": "Intl.NumberFormatOptions",
"description": "Options to format the input value."
},
"autoFocus": {
"type": "boolean",
"default": "false",
"description": "Whether to focus the element on page load."
},
"disabled": {
"type": "boolean",
"default": "false",
"description": "Whether the component should ignore user interaction."
},
"readOnly": {
"type": "boolean",
"default": "false",
"description": "Whether the user should be unable to change the field value."
},
"required": {
"type": "boolean",
"default": "false",
"description": "Whether the user must enter a value before submitting a form."
},
"invalid": {
"type": "boolean",
"default": "false",
"description": "Whether the field is forcefully marked as invalid."
},
"id": {
"type": "string",
"description": "The id of the input element."
},
"className": {
"type": "string | (state) => string",
"description": "CSS class applied to the element, or a function that\nreturns a class based on the component’s state."
},
"render": {
"type": "React.ReactElement | (props, state) => React.ReactElement",
"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-disabled": {
"description": "Present when the number field is disabled."
},
"data-readonly": {
"description": "Present when the number field is readonly."
},
"data-required": {
"description": "Present when the number field is required."
},
"data-valid": {
"description": "Present when the number field is in valid state (when wrapped in Field.Root)."
},
"data-invalid": {
"description": "Present when the number field is in invalid state (when wrapped in Field.Root)."
},
"data-dirty": {
"description": "Present when the number field's value has changed (when wrapped in Field.Root)."
},
"data-touched": {
"description": "Present when the number field has been touched (when wrapped in Field.Root)."
},
"data-filled": {
"description": "Present when the number field is filled (when wrapped in Field.Root)."
},
"data-focused": {
"description": "Present when the number field is focused (when wrapped in Field.Root)."
},
"data-scrubbing": {
"description": "Present while scrubbing."
}
},
"cssVariables": {}
}