radio-group

Radio Group

Lets the user pick exactly one of a few options; joins the Field around it for its label, description and errors.

Parts

PartFileDoes
RadioGroupRadioGroup.vueGroups radio items so the user can pick exactly one option.
RadioGroupItemRadioGroupItem.vueLets the user select one option of its radio group.

Anatomy

<RadioGroup>
  <RadioGroupItem />
</RadioGroup>

Styling

All of Radio Group’s styles live in radio-group.json. New to styling in Frontic UI? How styling works →

Install

Installs with it
use-field-control
npm packages
@lucide/vue
@vueuse/core
reka-ui

API reference

RadioGroup.vue

Groups radio items so the user can pick exactly one option.

Props 11

PropTypeDefault
modelValueAcceptableValue—
defaultValueAcceptableValue—
disabledbooleanfalse
orientationDataOrientation—
dirDirection—
loopbooleantrue
asChildbooleanfalse
asAsTag | Component—
namestring—
requiredbooleanfalse
classClassValue—

Events 1

EventPayload
update:modelValuepayload: AcceptableValue

Slots 1

SlotSlot props
default{ modelValue: AcceptableValue | undefined; }

Data attributes 1

Data attributeValues
data-disabled—

Recipe radio-group 1 group

RadioGroupItem.vue
Radio Group
State