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
modelValuestring—Selected value (v-model)
value*string—Value for this radio option
name*string—Radio group name
labelstring—Label text
descriptionstring—Description text below label
sizestring—Radio size
disabledbooleanfalseDisabled state
requiredbooleanfalseRequired indicator

Events ​

EventPayloadDescription
update:modelValuestringEmitted when selection changes