Skip to main content

Radio

About 189 wordsLess than 1 minute

Radio

Props

PropTypeDefaultDescription
idstringAuto-generatedUnique base ID used for each radio input.
iconstring | nullnullOptional icon displayed with the fieldset label.
labelstring-Main label for the group of radio options.
infostring-Optional helper text shown below the radio group.
errorstring-Error message shown below the radio group.
optionsOption[][]List of selectable options with { value, label, disabled? }.
modelValuestring | number | undefinednullThe current selected value (must match one of the option values).

Emits

EventPayload TypeDescription
update:modelValuestring | numberEmitted when a new option is selected.

Install

import { FgRadio } from 'fadgram-vue'

Basic usage

Preview
Select country

Selected country: