@@ -20,49 +20,51 @@ The `CheckboxGroup` and `RadioGroup` components are replacing the `ChoiceFieldse
20
20
``` jsx
21
21
import {ChoiceFieldset } from " @primer/react"
22
22
23
- // Multi-select
24
- < ChoiceFieldset>
25
- < ChoiceFieldset .Legend >
26
- Preferred Primer component interface
27
- < / ChoiceFieldset .Legend >
28
-
29
- < ChoiceFieldset .List selectionVariant= " multiple" >
30
- < ChoiceFieldset .Item value= " figma" >
31
- Figma library
32
- < / ChoiceFieldset .Item >
33
- < ChoiceFieldset .Item value= " css" >
34
- Primer CSS
35
- < / ChoiceFieldset .Item >
36
- < ChoiceFieldset .Item value= " react" >
37
- Primer React components
38
- < / ChoiceFieldset .Item >
39
- < ChoiceFieldset .Item value= " viewcomponents" >
40
- Primer ViewComponents
41
- < / ChoiceFieldset .Item >
42
- < / ChoiceFieldset .List >
43
- < / ChoiceFieldset>
44
-
45
- // Single select
46
- < ChoiceFieldset>
47
- < ChoiceFieldset .Legend >
48
- Preferred Primer component interface
49
- < / ChoiceFieldset .Legend >
50
-
51
- < ChoiceFieldset .List >
52
- < ChoiceFieldset .Item value= " figma" >
53
- Figma library
54
- < / ChoiceFieldset .Item >
55
- < ChoiceFieldset .Item value= " css" >
56
- Primer CSS
57
- < / ChoiceFieldset .Item >
58
- < ChoiceFieldset .Item value= " react" >
59
- Primer React components
60
- < / ChoiceFieldset .Item >
61
- < ChoiceFieldset .Item value= " viewcomponents" >
62
- Primer ViewComponents
63
- < / ChoiceFieldset .Item >
64
- < / ChoiceFieldset .List >
65
- < / ChoiceFieldset>
23
+ <>
24
+ // Multi-select
25
+ < ChoiceFieldset>
26
+ < ChoiceFieldset .Legend >
27
+ Preferred Primer component interface
28
+ < / ChoiceFieldset .Legend >
29
+
30
+ < ChoiceFieldset .List selectionVariant= " multiple" >
31
+ < ChoiceFieldset .Item value= " figma" >
32
+ Figma library
33
+ < / ChoiceFieldset .Item >
34
+ < ChoiceFieldset .Item value= " css" >
35
+ Primer CSS
36
+ < / ChoiceFieldset .Item >
37
+ < ChoiceFieldset .Item value= " react" >
38
+ Primer React components
39
+ < / ChoiceFieldset .Item >
40
+ < ChoiceFieldset .Item value= " viewcomponents" >
41
+ Primer ViewComponents
42
+ < / ChoiceFieldset .Item >
43
+ < / ChoiceFieldset .List >
44
+ < / ChoiceFieldset>
45
+
46
+ // Single select
47
+ < ChoiceFieldset>
48
+ < ChoiceFieldset .Legend >
49
+ Preferred Primer component interface
50
+ < / ChoiceFieldset .Legend >
51
+
52
+ < ChoiceFieldset .List >
53
+ < ChoiceFieldset .Item value= " figma" >
54
+ Figma library
55
+ < / ChoiceFieldset .Item >
56
+ < ChoiceFieldset .Item value= " css" >
57
+ Primer CSS
58
+ < / ChoiceFieldset .Item >
59
+ < ChoiceFieldset .Item value= " react" >
60
+ Primer React components
61
+ < / ChoiceFieldset .Item >
62
+ < ChoiceFieldset .Item value= " viewcomponents" >
63
+ Primer ViewComponents
64
+ < / ChoiceFieldset .Item >
65
+ < / ChoiceFieldset .List >
66
+ < / ChoiceFieldset>
67
+ < / >
66
68
67
69
```
68
70
@@ -72,51 +74,53 @@ import {ChoiceFieldset} from "@primer/react"
72
74
``` jsx
73
75
import {FormGroup , Checkbox } from " @primer/react"
74
76
75
- // Multi-select
76
- < CheckboxGroup>
77
- < CheckboxGroup .Label >
78
- Preferred Primer component interface
79
- < / CheckboxGroup .Label >
80
- < FormControl>
81
- < Checkbox value= " figma" / >
82
- < FormControl .Label > Figma< / FormControl .Label >
83
- < / FormControl>
84
- < FormControl>
85
- < Checkbox value= " css" / >
86
- < FormControl .Label > CSS < / FormControl .Label >
87
- < / FormControl>
88
- < FormControl>
89
- < Checkbox value= " react" / >
90
- < FormControl .Label > Primer React components< / FormControl .Label >
91
- < / FormControl>
92
- < FormControl>
93
- < Checkbox value= " viewcomponents" / >
94
- < FormControl .Label > Primer ViewComponents< / FormControl .Label >
95
- < / FormControl>
96
- < / CheckboxGroup>
97
-
98
- // Single select
99
- < RadioGroup name= " preferred-primer" >
100
- < RadioGroup .Label >
101
- Preferred Primer component interface
102
- < / RadioGroup .Label >
103
- < FormControl>
104
- < Radio value= " figma" / >
105
- < FormControl .Label > Figma< / FormControl .Label >
106
- < / FormControl>
107
- < FormControl>
108
- < Radio value= " css" / >
109
- < FormControl .Label > CSS < / FormControl .Label >
110
- < / FormControl>
111
- < FormControl>
112
- < Radio value= " react" / >
113
- < FormControl .Label > Primer React components< / FormControl .Label >
114
- < / FormControl>
115
- < FormControl>
116
- < Radio value= " viewcomponents" / >
117
- < FormControl .Label > Primer ViewComponents< / FormControl .Label >
118
- < / FormControl>
119
- < / RadioGroup>
77
+ <>
78
+ // Multi-select
79
+ < CheckboxGroup>
80
+ < CheckboxGroup .Label >
81
+ Preferred Primer component interface
82
+ < / CheckboxGroup .Label >
83
+ < FormControl>
84
+ < Checkbox value= " figma" / >
85
+ < FormControl .Label > Figma< / FormControl .Label >
86
+ < / FormControl>
87
+ < FormControl>
88
+ < Checkbox value= " css" / >
89
+ < FormControl .Label > CSS < / FormControl .Label >
90
+ < / FormControl>
91
+ < FormControl>
92
+ < Checkbox value= " react" / >
93
+ < FormControl .Label > Primer React components< / FormControl .Label >
94
+ < / FormControl>
95
+ < FormControl>
96
+ < Checkbox value= " viewcomponents" / >
97
+ < FormControl .Label > Primer ViewComponents< / FormControl .Label >
98
+ < / FormControl>
99
+ < / CheckboxGroup>
100
+
101
+ // Single select
102
+ < RadioGroup name= " preferred-primer" >
103
+ < RadioGroup .Label >
104
+ Preferred Primer component interface
105
+ < / RadioGroup .Label >
106
+ < FormControl>
107
+ < Radio value= " figma" / >
108
+ < FormControl .Label > Figma< / FormControl .Label >
109
+ < / FormControl>
110
+ < FormControl>
111
+ < Radio value= " css" / >
112
+ < FormControl .Label > CSS < / FormControl .Label >
113
+ < / FormControl>
114
+ < FormControl>
115
+ < Radio value= " react" / >
116
+ < FormControl .Label > Primer React components< / FormControl .Label >
117
+ < / FormControl>
118
+ < FormControl>
119
+ < Radio value= " viewcomponents" / >
120
+ < FormControl .Label > Primer ViewComponents< / FormControl .Label >
121
+ < / FormControl>
122
+ < / RadioGroup>
123
+ < / >
120
124
```
121
125
122
126
</td >
0 commit comments