mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
15 lines
493 B
Vue
15 lines
493 B
Vue
<script setup>
|
|
const people = ['Wade Cooper', 'Arlene Mccoy', 'Devon Webb', 'Tom Cook', 'Tanya Fox', 'Hellen Schmidt', 'Caroline Schultz', 'Mason Heaney', 'Claudie Smitham', 'Emil Schaefer']
|
|
|
|
const selected = ref([])
|
|
</script>
|
|
|
|
<template>
|
|
<USelectMenu v-model="selected" :options="people" multiple>
|
|
<template #label>
|
|
<span v-if="selected.length" class="truncate">{{ selected.join(', ') }}</span>
|
|
<span v-else>Select people</span>
|
|
</template>
|
|
</USelectMenu>
|
|
</template>
|