Ui3nRadioGroup
Radio button and radio group components for single selection from multiple options.
Ui3nRadio
Single radio button component.
Props
| Name | Type | Default | Description |
|---|---|---|---|
id | string | undefined | — | Root element id |
name | string | undefined | — | HTML name attribute for form submission (used if radio is outside a group) |
modelValue | Ui3nRadioValue | undefined | false | Current radio value |
checkedValue | Ui3nRadioValue | undefined | true | Value when radio is checked |
uncheckedValue | Ui3nRadioValue | undefined | false | Value when radio is unchecked |
size | string | number | undefined | "16" | Radio size |
color | string | undefined | "var(--color-icon-control-accent-default)" | Radio color |
disabled | boolean | undefined | false | Whether radio is disabled |
Events
| Event Name | Arguments / Value Type | Description |
|---|---|---|
update:modelValue | value: Ui3nRadioValue | — |
change | value: Ui3nRadioValue | — |
Slots
| Slot Name | Scope Props (v-slot) | Description |
|---|---|---|
#checkedIcon | — | Checked icon slot |
#uncheckedIcon | — | Unchecked icon slot |
#default | — | Default slot |
Public Methods & Exposes
| Method Name | Signature / Type | Description |
|---|---|---|
clear() | () => void | — |
Ui3nRadioGroup
Radio group component for managing multiple radio buttons.
Props
| Name | Type | Default | Description |
|---|---|---|---|
id | string | undefined | — | Root element id |
name* | string | — | Radio group name |
modelValue* | Ui3nRadioValue | — | Current radio group value |
direction | "horizontal" | "vertical" | undefined | "vertical" | Radio group direction |
disabled | boolean | undefined | false | Whether radio group is disabled |
Events
| Event Name | Arguments / Value Type | Description |
|---|---|---|
update:modelValue | value: Ui3nRadioValue | — |
change | value: Ui3nRadioValue | — |
Slots
| Slot Name | Scope Props (v-slot) | Description |
|---|---|---|
#default | — | Default slot |
Public Methods & Exposes
| Method Name | Signature / Type | Description |
|---|---|---|
clear() | () => void | — |
Usage Examples
Simple radio
Simple radio
Basic radio button usage
Radio group
Radio group
Radio buttons grouped together
Horizontal radio group
Horizontal radio group
Radio group with horizontal direction
Custom icons slot
Custom icons slot
Radio buttons with custom icons for checked and unchecked states using slots