forked from mui/base-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathradio-root.json
70 lines (70 loc) · 2.45 KB
/
radio-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
{
"name": "RadioRoot",
"description": "Represents the radio button itself.\nRenders a `<button>` element and a hidden `<input>` beside.",
"props": {
"value": {
"type": "any",
"required": true,
"description": "The unique identifying value of the radio in a group."
},
"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 select the radio button."
},
"required": {
"type": "boolean",
"default": "false",
"description": "Whether the user must choose a value before submitting a form."
},
"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-checked": {
"description": "Present when the radio is checked."
},
"data-unchecked": {
"description": "Present when the radio is not checked."
},
"data-disabled": {
"description": "Present when the radio is disabled."
},
"data-readonly": {
"description": "Present when the radio is readonly."
},
"data-required": {
"description": "Present when the radio is required."
},
"data-valid": {
"description": "Present when the radio is in valid state (when wrapped in Field.Root)."
},
"data-invalid": {
"description": "Present when the radio is in invalid state (when wrapped in Field.Root)."
},
"data-dirty": {
"description": "Present when the radio's value has changed (when wrapped in Field.Root)."
},
"data-touched": {
"description": "Present when the radio has been touched (when wrapped in Field.Root)."
},
"data-filled": {
"description": "Present when the radio is checked (when wrapped in Field.Root)."
},
"data-focused": {
"description": "Present when the radio is focused (when wrapped in Field.Root)."
}
},
"cssVariables": {}
}