Radio
RadioGroup
A component used to simplify working with multiple radio buttons.
import { RadioGroup } from '@semcore/ui/radio';
<RadioGroup />;
IRadioGroupProps
Property | Description |
---|---|
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 />;
IRadioProps extends IBoxProps
Property | Description |
---|---|
state RadioState = normal | The value displaying the state of the component |
size RadioSize = m | 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 />;
IRadioValueProps extends IBoxProps
, IKeyboardFocusProps
Property | Description |
---|---|
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 |
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 />;