You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The `CheckboxGroup` and `RadioGroup` components will be used to deprecate the `ChoiceFieldset` component. The deprecation of `ChoiceFieldset` also allows us to deprecate `ChoiceInputField`.
8
+
9
+
`CheckboxGroup` and `RadioGroup` have the ability to render contextual content with your fieldset: labels, validation statuses, captions. It also handles the ARIA attributes that make the form controls accessible to assistive technology.
10
+
11
+
<table>
12
+
<tr>
13
+
<th> Before </th> <th> After </th>
14
+
</tr>
15
+
<tr>
16
+
<tdvalign="top">
17
+
18
+
```jsx
19
+
import {ChoiceFieldset} from"@primer/react";
20
+
21
+
// Multi-select
22
+
<ChoiceFieldset>
23
+
<ChoiceFieldset.Legend>Prefered Primer component interface</ChoiceFieldset.Legend>
<tr><th>Migration steps to CheckboxGroup and RadioGroup</th></tr>
101
+
<tr>
102
+
<td>
103
+
104
+
<strong>Upgrade to the new</strong> `CheckboxGroup` and `RadioGroup` components by referring to the examples in our documentation: [CheckboxGroup](https://primer.style/react/CheckboxGroup), [RadioGroup](https://primer.style/react/RadioGroup).
105
+
106
+
or
107
+
108
+
<strong>Continue using the deprecated</strong> `ChoiceFieldset` component :
109
+
110
+
```js
111
+
import {ChoiceFieldset} from'@primer/react/deprecated'// change your import statements
* @deprecated Use `CheckboxGroup` or `RadioGroup` instead.
60
+
* @deprecated Use `CheckboxGroup` or `RadioGroup` instead. See https://primer.style/react/CheckboxGroup and https://primer.style/react/RadioGroup for more info
0 commit comments