<script setup>
const props = defineProps({
    field: Object,
})

const model = defineModel();
</script>

<template>
 <div>
     <select :name="field.name" :id="field.name" v-model="model" multiple class="block w-full rounded-md py-1.5 border-gray-300 text-gray-900 shadow-sm placeholder:text-gray-400 sm:text-sm">
        <option v-for="option in field.items" :key="option.id" :value="option.id">
            {{ option.label }}
        </option>
     </select>
 </div>
</template>
