-
-
Notifications
You must be signed in to change notification settings - Fork 110
/
Copy pathradio-group.json
55 lines (55 loc) · 2.04 KB
/
radio-group.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
{
"name": "RadioGroup",
"description": "Provides a shared state to a series of radio buttons.\nRenders a `<div>` element.",
"props": {
"name": {
"type": "string",
"description": "Identifies the field when a form is submitted."
},
"defaultValue": {
"type": "any",
"description": "The uncontrolled value of the radio button that should be initially selected.\n\nTo render a controlled radio group, use the `value` prop instead."
},
"value": {
"type": "any",
"description": "The controlled value of the radio item that should be currently selected.\n\nTo render an uncontrolled radio group, use the `defaultValue` prop instead."
},
"onValueChange": {
"type": "(value, event) => void",
"description": "Callback fired when the value changes."
},
"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 a different radio button in the group."
},
"required": {
"type": "boolean",
"default": "false",
"description": "Whether the user must choose a value before submitting a form."
},
"inputRef": {
"type": "React.Ref",
"description": "The ref to the hidden 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 radio group is disabled."
}
},
"cssVariables": {}
}