Skip to content

Radio

Components
5.4.10

RadioGroup

A component used to simplify working with multiple radio buttons.

import { RadioGroup } from '@semcore/ui/radio';
<RadioGroup />;
interface
IRadioGroupProps
PropertyDescription
name
string

Radio group name

defaultValue

Active default value

value

Active value

onChange
(value: RadioValue, e: React.SyntheticEvent) => void

Called when the selected element is changed

size

Radio button size

theme
string

The theme of the radio button that you can send your color to

disabled
boolean

Blocks access and changes to the form field

Radio

This is an independent radio component.

import Radio from '@semcore/ui/radio';
<Radio />;
interface
IRadioProps extends IBoxProps
PropertyDescription
state
RadioState = normal

The value displaying the state of the component

size

Radio button size

theme
string

The theme of the radio button that you can send your color to

Radio.Value

import Radio from '@semcore/ui/radio';
<Radio.Value />;
interface
IRadioValueProps extends IBoxProps, IKeyboardFocusProps
PropertyDescription
includeInputProps
string[]

List of elements that can be put on a hidden input

state
RadioState = normal

The value displaying the state of the component

theme
string

The theme of the radio button that you can send your color to

size

Radio button size

value

The element value is required for RadioGroup

defaultValue

Default value if value property is not provided

onChange
(value: boolean, e: React.SyntheticEvent) => void

Called when the value changes

disabled
boolean

Blocks access and changes to the form field

Radio.Text

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