Skip to content

fv-radio already supports grouped selection when multiple radios share the same v-model and use different label values. You can use that pattern directly without radio-group.

Basic ​


vue
<div class="radio-docs-row">
  <fv-radio v-model="basicValue" label="Option">Option</fv-radio>
  <fv-radio v-model="basicValue" label="Option2">Option2</fv-radio>
  <fv-radio label="Option3" disabled>Disabled</fv-radio>
</div>

Grouped Radios ​


vue
<div :class="['radio-docs-card', { 'radio-docs-card--dark': theme === 'dark' }]">
  <div class="radio-docs-card__title">Choose a platform</div>
  <div class="radio-docs-row">
    <fv-radio v-model="groupValue" label="Windows">Windows</fv-radio>
    <fv-radio v-model="groupValue" label="macOS">macOS</fv-radio>
    <fv-radio v-model="groupValue" label="Linux">Linux</fv-radio>
  </div>
</div>

Inline Group On Dark Surface ​


vue
<div class="radio-docs-card radio-docs-card--dark">
  <div class="radio-docs-card__title">Notification channel</div>
  <div class="radio-docs-row">
    <fv-radio v-model="darkGroupValue" label="Email" theme="dark">Email</fv-radio>
    <fv-radio v-model="darkGroupValue" label="Teams" theme="dark">Teams</fv-radio>
    <fv-radio v-model="darkGroupValue" label="SMS" theme="dark" disabled>SMS</fv-radio>
  </div>
</div>

With Icon ​


vue
<div class="radio-docs-row">
  <fv-radio v-model="iconValue" label="NUIIris" icon="NUIIris">NUIIris</fv-radio>
  <fv-radio v-model="iconValue" label="MSN" icon="NUIFace">MSN</fv-radio>
  <fv-radio v-model="iconValue" label="DisabledIcon" icon="NUIFace" disabled>Disabled</fv-radio>
</div>

With Image ​


vue
<div class="radio-docs-row">
  <fv-radio
    v-model="imageValue"
    label="Chart"
    image="https://static2.sharepointonline.com/files/fabric/office-ui-fabric-react-assets/choicegroup-bar-unselected.png"
    activeImage="https://static2.sharepointonline.com/files/fabric/office-ui-fabric-react-assets/choicegroup-bar-selected.png"
  >
    Chart
  </fv-radio>
</div>

Custom Color ​


vue
<div class="radio-docs-row">
  <fv-radio
    icon="NUIIris"
    v-model="customValue"
    label="Mint"
    style="background:#00cc99;"
    theme="dark"
  >
    Mint
  </fv-radio>
  <fv-radio
    icon="NUIIris"
    v-model="customValue"
    label="MintDisabled"
    style="background:#00cc99;"
    theme="dark"
    disabled
  >
    Disabled
  </fv-radio>
</div>

Properties ​


PropertyTypeRequiredDefaultDescription
modelValuestring | number | booleanNo''Bound value used by v-model. Radios with the same v-model act as a group.
labelstring | numberYesundefinedValue assigned when the radio is selected.
themestringNo'global'Theme color.
iconstringNonullFluent icon name.
colorstringNo''Text color.
foregroundstringNo'rgba(0, 90, 158, 0.8)'Active foreground color.
iconBlockBorderRadiusnumberNo6Border radius when using icon or image mode.
iconBlockBorderWidthnumberNo2Border width when using icon or image mode.
imagestringNonullPreview image URL.
activeImagestringNonullPreview image URL used in the selected state.
disabledbooleanNofalseWhether the component is disabled.
langstringNo"global"Language option inherited from the library.

Events ​


EventArgumentsDescription
clickeventEmitted when the radio is clicked.
activedeventEmitted when the current radio is selected.

MIT Licensed