Skip to main content

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

ParameterType
propsRadioButtonProps
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

MemberType
errorboolean
handleChange(e) => void
idstring
isSelectedboolean
labelstring
sizeRadioButtonSize
valuestring

Source

libs/design-system-core/src/components/RadioButton/index.tsx:6

References

default

Renames and re-exports RadioButton