Skip to content

Radio Group

Radio option group with horizontal or vertical layout.

Usage

vue
<script setup>
import { ref } from "vue";
import { ArchRadioGroup } from "@archora/ui";

const value = ref("auto");
const options = [
  { value: "auto", label: "Auto" },
  { value: "manual", label: "Manual" }
];
</script>

<template>
  <ArchRadioGroup v-model="value" :options="options" />
</template>

Live sandbox

Radio Group can be tested directly on this page.

interactive
<RadioGroup />

Props

PropTypeDefaultDescription
options{ value: string; label: string; description?: string; disabled?: boolean }[]-Option list.
modelValuestring-v-model value.
namestring-Field name.
orientation"horizontal" | "vertical""vertical"Orientation.
size"sm" | "md" | "lg""md"Size.
disabledbooleanfalseDisables the component.
requiredbooleanfalseMarks the field as required.
invalidbooleanfalseInvalid state.
ariaLabelstring-aria-label.
ariaLabelledbystring-aria-labelledby.

Events

EventPayloadDescription
update:modelValuevalue: stringmodelValue change.
changevalue: stringValue change.