Skip to content

PaRadio ​

Individual radio button component designed to be used within PaRadioGroup. This component is not typically used standalone - use PaRadioGroup for most radio button implementations.

Usage with PaRadioGroup ​

Preferred Contact Method
Selected: None
vue
<template>
  <pa-radio-group 
    label="Preferred Contact Method" 
    v-model:selectedValue="selectedMethod"
  >
    <pa-radio value="email" label="Email" />
    <pa-radio value="phone" label="Phone" />
    <pa-radio value="sms" label="SMS" />
  </pa-radio-group>
</template>

<script setup>
import { ref } from 'vue'

const selectedMethod = ref('')
</script>

Importing ​

typescript
import { PaRadio, PaRadioGroup } from '@payadvantage/ui-components'

Properties ​

PropertyTypeDefaultDescription
valuestringrequiredThe value to emit when this radio is selected
labelstring''Label text for the radio button
disabledbooleanfalseWhether the radio button is disabled
requiredbooleanfalseWhether the radio button is required for validation
size'sm' | 'lg''sm'Size of the radio button

Usage Notes ​

PaRadio is designed to be used within PaRadioGroup containers. The radio group manages the selected state and ensures only one option can be selected at a time.

For most use cases, use PaRadioGroup which provides the complete radio button functionality.