<template>
  <div class="ptc-radio-group"><slot /></div>
</template>

<script setup lang="ts">
import { provide, toRef } from 'vue'

const props = defineProps<{ modelValue: any }>()
const emit = defineEmits<{
  (e: 'update:modelValue', value: any): void
}>()

provide('RadioGroup', {
  modelValue: toRef(props, 'modelValue'),
  emit,
})
</script>
