Files
hoppscotch/packages/hoppscotch-app/components/smart/RadioGroup.vue
2021-12-24 08:12:35 +05:30

23 lines
423 B
Vue

<template>
<div class="flex flex-col space-y-4">
<SmartRadio
v-for="(radio, index) in radios"
:key="`radio-${index}`"
:value="radio.value"
:label="radio.label"
:selected="selected"
@change="$emit('change', radio.value)"
/>
</div>
</template>
<script setup lang="ts">
defineProps<{
radios: Array<{
value: string
label: string
}>
selected: string
}>()
</script>