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
I am attempting to create a group of radio buttons using the example code in the storybook here.
<FormGrouplegendText="My radio button group label"><RadioButtonGroupname="radio-button-group"onChange={onRadioButtonChange}orientation="vertical"valueSelected="radio-button-1"><RadioButtonid="radio-button-1"labelText="First radio button"value="radio-button-1"/><RadioButtonid="radio-button-2"labelText="Second radio button"value="radio-button-2"/><RadioButtonid="radio-button-3"labelText="Third radio button"value="radio-button-3"/></RadioButtonGroup></FormGroup>
I would like to use a Tooltip that contains help information for the legendText prop for the FormGroup component, like the following:
<FormGrouplegendText={(<TooltiptriggerText="My radio button group label"direction="right">
Some help information here...
</Tooltip>)}>
// ... RadioButtonGroup here ...
</FormGroup>
However, it seems that only string values are supported. I see this error:
Warning: Failed prop type: Invalid prop `legendText` of type `object` supplied to `FormGroup`, expected `string`.
Justification
We should be able to display help information if a user needs it.
Also, this is supported for the labelText prop for the TextInput component, so I think it makes sense to have it supported for radio button groups as well.
The text was updated successfully, but these errors were encountered:
Summary
I am attempting to create a group of radio buttons using the example code in the storybook here.
I would like to use a
Tooltip
that contains help information for thelegendText
prop for theFormGroup
component, like the following:However, it seems that only
string
values are supported. I see this error:Justification
We should be able to display help information if a user needs it.
Also, this is supported for the
labelText
prop for theTextInput
component, so I think it makes sense to have it supported for radio button groups as well.The text was updated successfully, but these errors were encountered: