Skip to content
On this page

Radio

vue
<template>
  <div>
    <Radio label="Checked" name="x" value="A" v-model="picked1" />
    <Radio label="UnChecked" name="x" value="B" v-model="picked1" />
  </div>
</template>
<script setup>
import Radio from "@/components/Radio";
import { ref } from "vue";
const picked1 = ref("A");
</script>

Note

name props is required for radio button and also v-model is required for radio button.

COPYRIGHT © 2022 Codeshaper, All rights reserved.