Skip to content

Radio

Single-choice radio button for selecting one option from a group.

Open in Storybook

Interactive Demo

Usage

vue
<script setup>
import { ref } from 'vue';
import { Radio } from '@yellowcard/b2b-design-system';

const selected = ref('option1');
</script>

<template>
  <Radio v-model="selected" value="option1" name="group" label="Option 1" />
  <Radio v-model="selected" value="option2" name="group" label="Option 2" />
  <Radio v-model="selected" value="option3" name="group" label="Option 3" />
</template>

API Reference

Props

PropTypeDefaultDescription
modelValuestringSelected value (v-model)
value*stringValue for this radio option
name*stringRadio group name
labelstringLabel text
descriptionstringDescription text below label
sizestringRadio size
disabledbooleanfalseDisabled state
requiredbooleanfalseRequired indicator

Events

EventPayloadDescription
update:modelValuestringEmitted when selection changes