Components

BaseRadioGroup

A group of radio buttons for one choice among a few options.

components/ui/inputs/BaseRadioGroup.vue
View in the demo

Example

Plan
Plan

API

Props

Name
Type
Default
Description
items
required
BaseSelectionItem[]—The options, each { title, value }.
inlinebooleantruePlaces the options in a row. Set it to false to stack them.
mandatorybooleanfalsePrevents leaving the group without a choice.
labelstring—The visible label above the field, linked to it with for and aria-labelledby.
input-idstring—A fixed id for the input. One is generated with useId() when you leave it out.
optionalboolean—Adds “(optional)” after the label. Never mark required fields.
infoBaseInputInfo—A help popover next to the label: a text or a list of { title, text }.
v-modelBaseSelectionValue | nullnullThe selected value.

Events

Name
Payload
Description
@update:modelValue[value: BaseSelectionValue | null]—

Accessibility

With a label the group renders a fieldset with a legend, so screen readers announce the question before each option. It accepts rules, hint and error-messages like any field.

© 2026 melsami UI.
Developer documentation for melsami UI.