<template>
    <v-radio-group 
        v-model="platform" 
        dense 
        hide-details
        row
    >
        <v-radio
            v-for="(item, key) in items"
            :key="'platform-' + key"
            :label="item"
            :value="key"
        >
        </v-radio>
    </v-radio-group>
</template>

<script>
    export default {
        props: {
            items: {default: () => []},
            value: {required: true},
        },

        computed: {

            platform: {
                get: function() {
                    return this.value;
                },

                set: function(value) {
                    this.$emit('input', value);
                }
            }
        },

        name: 'PlatformRadioSelector',
    }
</script>