UIRadio
UIRadio
A radio button component for single selection from multiple options.
<template> <UIRadioGroup v-model:value="selected" name="options"> <UIRadio value="option1">Option 1</UIRadio> <UIRadio value="option2">Option 2</UIRadio> <UIRadio value="option3" disabled>Option 3</UIRadio> </UIRadioGroup></template>
<script setup lang="ts">const selected = ref('option1')</script>Radio Props
value(string | number | boolean): Radio valuedisabled(boolean): Disable radio buttonname(string): Input name attributesize(‘small’ | ‘medium’ | ‘large’): Radio sizechecked(boolean): Radio checked state
RadioGroup Props
value(string | number | boolean): Selected valuedisabled(boolean): Disable all radio buttonsname(string): Group name attributevertical(boolean): Vertical layoutsize(‘small’ | ‘medium’ | ‘large’): Group size
Events
update:value: Emitted when selection changeschange: Emitted when radio is selected
Slots
default: Radio label content