UI LibraryUI Library
Guide
Components
Styling
Repo
Guide
Components
Styling
Repo
  • Guide

    • Introduction
    • Getting Started
  • Components

    • CataUiAccordion
    • CataUiAccordionItem
    • CataUiAlert
    • CataUiAnchorMenu
    • CataUiBadge
    • CataUiButton
    • CataUiCollapse
    • CataUiDraggable
    • CataUiDropdown
    • CataUiDropover
    • CataUiFileTree
    • CataUiIcon
    • CataUiIconSwitch
    • CataUiInput
    • CataUiInputCheckbox
    • CataUiInputColor
    • CataUiInputDate
    • CataUiInputGroup
    • CataUiInputRadio
    • CataUiInputSearch
    • CataUiInputSelect
    • CataUiMasonry
    • CataUiMasonryTile
    • CataUiLogo
    • CataUiModal
    • CataUiPaginate
    • CataUiProgress
    • CataUiSpinner
    • CataUiStatusLabel
    • CataUiSwitch
    • CataUiTable
    • CataUiTableAG
    • CataUiTableFooter
    • CataUiTabs
    • CataUiTabSwitch
    • CataUiTooltip
  • Styling

    • Colors
    • Icons
    • Typography
    • Utils

CataUiInputRadio

A customizable radio button component that mimics the functionality of a standard HTML radio input while providing a consistent styling within the Catalyst UI framework.

Basic Example

With Name Attribute

Selected value: option1

Basic Usage

<CataUiInputRadio label="My radio button 1" v-model="myModelValue" value="opt1" />
<CataUiInputRadio label="My radio button 2" v-model="myModelValue" value="opt2" />

Tips

The radio button component works exactly like a normal <input type="radio" /> would. Add properties like name & value just like you normally would with standard HTML radio inputs.

Examples

Radio Button Group

Radio buttons with the same v-model will be automatically grouped together, allowing only one option to be selected at a time:

<CataUiInputRadio 
  label="Option 1" 
  name="group-example" 
  v-model="selectedOption" 
  value="option1" />
<CataUiInputRadio 
  label="Option 2" 
  name="group-example" 
  v-model="selectedOption" 
  value="option2" />
<CataUiInputRadio 
  label="Option 3 (Disabled)" 
  name="group-example" 
  v-model="selectedOption" 
  value="option3" 
  disabled 
/>

Props

PropDescriptionTypeDefaultRequired
labelThe text label displayed after the radio buttonString''false

Inherited Props

The component also supports all standard HTML input attributes for radio inputs:

PropDescriptionTypeDefaultRequired
checkedWhether the radio button is checkedBoolean-false
disabledDisables the radio buttonBoolean-false
nameName for the input element (important for grouping)String-false
requiredMakes the input requiredBoolean-false
valueValue associated with the radio buttonString | Number | Boolean-false

v-model Binding

This component implements Vue's v-model to bind a value:

<script setup>
  import { ref } from 'vue';
  
  const selectedOption = ref('option1');
</script>

<template>
  <CataUiInputRadio
    v-model="selectedOption"
    value="option1"
    label="Option 1" />
</template>
Prev
CataUiInputGroup
Next
CataUiInputSearch