Skip to content

Radio

RadioGroup ​

A component used to simplify working with multiple radio buttons.

jsx
import { RadioGroup } from '@semcore/ui/radio';
<RadioGroup />;

NSRadio.Group.Props ​

NameTypeDescription
namestring Radio group name
defaultValue Active default value
value Active value
onChange((value: , e: ) => void) | 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 '@semcore/ui/radio';
<Radio />;

NSRadio.Props ​

& {...}
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 '@semcore/ui/radio';
<Radio.Value />;

NSRadio.Value.Props ​

& {...}
NameTypeDescription
includeInputPropsstring[] List of elements that can be put on a hidden input

Radio.Text ​

jsx
import Radio from '@semcore/ui/radio';
<Radio.Text />;

Released under the MIT License.

Released under the MIT License.