RadioButton
Components
RadioButton()
RadioButton(
props
,context
?):ReactNode
A RadioButton component is useful when you need the user to pick one option from a list of multiple options.
Parameters
Parameter | Type |
---|---|
props | RadioButtonProps |
context ? | any |
Returns
ReactNode
Example
<RadioButton
id='1'
label='Radio button'
value='Radio button'
isSelected={true}
handleChange={handleRadioChange}
/>
Source
libs/design-system-core/src/components/RadioButton/index.tsx:44
Props
RadioButtonProps
RadioButtonProps:
object
Type declaration
Member | Type |
---|---|
error | boolean |
handleChange | (e ) => void |
id | string |
isSelected | boolean |
label | string |
size | RadioButtonSize |
value | string |
Source
libs/design-system-core/src/components/RadioButton/index.tsx:6
References
default
Renames and re-exports RadioButton