mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-15 20:48:12 +01:00
24 lines
408 B
Vue
24 lines
408 B
Vue
<script setup>
|
|
const methods = [{
|
|
name: 'email',
|
|
value: 'email',
|
|
label: 'Email'
|
|
}, {
|
|
name: 'sms',
|
|
value: 'sms',
|
|
label: 'Phone (SMS)'
|
|
}, {
|
|
name: 'push',
|
|
value: 'push',
|
|
label: 'Push notification'
|
|
}]
|
|
|
|
const selected = ref('sms')
|
|
</script>
|
|
|
|
<template>
|
|
<div class="space-y-1">
|
|
<URadio v-for="method of methods" :key="method.name" v-model="selected" v-bind="method" />
|
|
</div>
|
|
</template>
|