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
namestring Radio group name
defaultValue Active default value
value Active value
onChange((value: , e: React.SyntheticEvent<>) => void) | React.Dispatch<React.SetStateAction<>> Called when the selected element is changed
size Radio button size
themestring The theme of the radio button that you can send your color to
disabledboolean Blocks 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
value Radio item value *
checkedboolean Radio item checked flag *
state The value displaying the state of the component
size Radio button size
themestring The theme of the radio button that you can send your color to
labelstring Radio item text *
disabledboolean Blocks 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
stateDeprecated
themestringDeprecated
sizeDeprecated
valueDeprecated
defaultValueDeprecated
onChange(value: boolean, e: React.SyntheticEvent<>) => voidDeprecated
disabledbooleanDeprecated

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.