Skip to content

Radio

RadioGroup

A component used to simplify working with multiple radio buttons.

jsx
import { RadioGroup } from 'intergalactic/radio';
<RadioGroup />;
import { RadioGroup } from 'intergalactic/radio';
<RadioGroup />;

RadioGroupProps

NameTypeDescription
namestringRadio group name
defaultValueActive default value
valueActive value
onChange((value: , e: React.SyntheticEvent<>) => void) | React.Dispatch<React.SetStateAction<>>Called when the selected element is changed
sizeRadio button size
themestringThe theme of the radio button that you can send your color to
disabledbooleanBlocks access and changes to the form field

Radio

This is an independent radio component.

jsx
import Radio from 'intergalactic/radio';
<Radio />;
import Radio from 'intergalactic/radio';
<Radio />;

RadioProps

& {...}
NameTypeDescription
valueRadio item value *
checkedbooleanRadio item checked flag *
stateThe value displaying the state of the component
sizeRadio button size
themestringThe theme of the radio button that you can send your color to
labelstringRadio item text *
disabledbooleanBlocks access and changes to the radio item *

Radio.Value

jsx
import Radio from 'intergalactic/radio';
<Radio.Value />;
import Radio from 'intergalactic/radio';
<Radio.Value />;

RadioValueProps

& & {...}
NameTypeDescription
includeInputPropsstring[]List of elements that can be put on a hidden input
state
themestring
size
value
defaultValue
onChange(value: boolean, e: React.SyntheticEvent<>) => void
disabledboolean

Radio.Text

jsx
import Radio from 'intergalactic/radio';
<Radio.Text />;
import Radio from 'intergalactic/radio';
<Radio.Text />;

Released under the MIT License.

Released under the MIT License.