Radio Group

Storybook

Radio groups are control elements that allow the user to make a single selection from a list of options.

Preview

Variants

Default

With Options

Passing in Radio components programmatically using an options object.

Without Legend

When no legend is provided it is expected that an aria-label is passed into the component.

With Slotted Legend

The legend can also be passed by slot.

With Event Hander

The event handler is only needed if you need to do additional processing. The v-model is automatically updated.

With Validation States

Vue API

Slots

Name
Description
default

slot for Input Group Components

legend

slot for Input Group Legend

Props

Name
Description
Default
name
required

The name of the input group

Type: string
dataQaGroup

A data qa tag for the radio group

Type: string
'radio-group'
dataQaGroupLegend

A data qa tag for the radio group legend

Type: string
'radio-group-legend'
dataQaGroupMessages

A data qa tag for the radio group messages

Type: string
'radio-group-messages'
disabled

Disables the input group

Type: boolean
Values: truefalse
false
id

The id of the input group

Type: string
function() { return getUniqueString(); }
legend

The legend of the input group

Type: string
''
legendChildProps

A set of props that are passed into the legend element

Type: object
{}
legendClass

Used to customize the legend element

Type: string|array|object
''
messages

Validation messages

Type: array
[]
messagesChildProps

A set of props that are passed into the messages container

Type: object
{}
messagesClass

Used to customize the messages container

Type: string|array|object
''
showMessages

Show validation messages

Type: boolean
Values: truefalse
true
v-model

A provided value for the radio group

Type: string|number
''
value

The value of the input group

Type: string|number|boolean|object
null

Events

Name
Description
input

Native input event

Type: String | Number
update:modelValue

Native input event

Type: String | Number

Accessibility

Radio Groups are typically paired with a legend which identifies the group. If no legend is provided then it is expected that an aria-label will be given in order to provide an invisible label to screen readers.

Radio Group documentation last updated Thursday, June 11, 2026