Skip to main content

Radio

Ask AIView as Markdown
Copy a prompt to ask an AI assistant about this page.

Radio buttons enable users to choose only one option from a predefined set of mutually exclusive options.

Radio - Code

Enclosing all related radio buttons together in a single radio group container ensures correct selection behavior, grouping and accessibility.

Basic​

Disabled​

Group​

Validation​

API for ix-radio​

Properties​

Description

Checked state of the radio component

Attribute
checked
Type
boolean
Default
false
Description

Disabled state of the radio component

Attribute
disabled
Type
boolean
Default
false
Description

Label for the radio component

Attribute
label
Type
string | undefined
Description

Name of the radio component

Attribute
name
Type
string | undefined
Description

Requires the radio component and its group to be checked for the form to be submittable

Attribute
required
Type
boolean
Default
false
Description

Value of the radio component

Attribute
value
Type
string | undefined

Events​

Description

Event emitted when the checked state of the radio changes

Event
checkedChange
Detail
boolean
Description

Event emitted when the radio is blurred

Event
ixBlur
Detail
void
Description

Event emitted when the value of the radio changes

Event
valueChange
Detail
string

Slot​

Description

Radio label.

API for ix-radio-group​

Properties​

Description

Alignment of the radio buttons in the group

Attribute
direction
Type
"column" | "row"
Default
'column'
Description

Show text below the field component

Attribute
helper-text
Type
string | undefined
Description

Info text for the field component

Attribute
info-text
Type
string | undefined
Description

Error text for the field component

Attribute
invalid-text
Type
string | undefined
Description

Label for the field component

Attribute
label
Type
string | undefined
Description

Show helper, info, warning, error and valid text as tooltip

Attribute
show-text-as-tooltip
Type
boolean | undefined
Description

Valid text for the field component

Attribute
valid-text
Type
string | undefined
Description

Value of the radiobutton group component

Attribute
value
Type
string | undefined
Description

Warning text for the field component

Attribute
warning-text
Type
string | undefined

Events​

Description

Event emitted when the value of the radiobutton group changes

Event
valueChange
Detail
string

Slot​

Description

Radio components.