ERadio
The ERadio
component replaces the standard html input type radio and encapsulates well-defined logic that can be reused throughout the app.
Basic Usage
template
<script setup>
import { ref } from "vue";
import { ERadio } from "easy-kit-component";
const choice = ref();
</script>
<template>
<ERadio :value="'One'" v-model="choice" :name="'Number'">One</ERadio>
<ERadio :value="'Two'" v-model="choice" :name="'Number'">Two</ERadio>
</template>
Choice is :
API Reference
- Props
ts
interface Radio {
value?: any;
name?: string;
disabled?: boolean;
}