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
If <code>true</code>, the radio buttons will be arranged horizontally.
170
+
</td>
171
+
</tr>
172
+
<tr>
173
+
<td>
174
+
<code>size</code>
175
+
</td>
176
+
<td>
177
+
<code>string</code>
178
+
</td>
179
+
<td>
180
+
The size of the component. One of: <code>'small'</code>, <code>'medium'</code> (default).
181
+
</td>
182
+
</tr>
183
+
<tr>
184
+
<td>
185
+
<code>value</code>
186
+
</td>
187
+
<td>
188
+
<code>any</code>
189
+
</td>
190
+
<td>
191
+
Value of the selected radio button. The DOM API casts this to a string.
192
+
</td>
193
+
</tr>
194
+
</tbody>
195
+
</table>
196
+
</TableContainer>
197
+
198
+
<aid="BestPractices">
199
+
<h2>Best Practices</h2>
200
+
</a>
201
+
<ul>
202
+
<li><strong>Single-choice only:</strong> Use RadioGroup when users must select just one option from a set. For multiple selections, use checkboxes instead.</li>
203
+
<li><strong>Clear labeling:</strong> Provide short, descriptive labels for each radio option to help users understand their choices quickly.</li>
204
+
<li><strong>Logical grouping:</strong> Visually and semantically group related radio options together to improve clarity and accessibility.</li>
205
+
<li><strong>Default selection:</strong> Set a sensible default value to guide users and streamline their decision-making process.</li>
206
+
<li><strong>Horizontal layout:</strong> Use the <code>row</code> prop for horizontal alignment when space is limited or when options are closely related.</li>
0 commit comments