The RadioFormField component uses optionDisplay prop to render the label. However, all other CareUI components such as SelectFormField, MultiSelectFormField, AutocompleteFormField, 'AutocompleteMultiselectFormField, etc. usesoptionLabel` as the prop name to for the field label.
Hence for improving consistency, let's rename the optionDisplay to optionLabel for the RadioFormField component.
Screenshots
Usages of optionLabel (185 results)
Usages of optionDisplay (28 results) that needs to be replaced with optionLabel
The
RadioFormField
component usesoptionDisplay
prop to render the label. However, all other CareUI components such asSelectFormField
,MultiSelectFormField
,AutocompleteFormField
, 'AutocompleteMultiselectFormField, etc. uses
optionLabel` as the prop name to for the field label.Hence for improving consistency, let's rename the
optionDisplay
tooptionLabel
for theRadioFormField
component.Screenshots
Usages of
optionLabel
(185 results)Usages of
optionDisplay
(28 results) that needs to be replaced withoptionLabel