mirror of
https://github.com/nuxt/ui.git
synced 2026-09-14 19:51:10 +08:00
e92be71749
Co-authored-by: Sébastien Chopin <seb@nuxt.com>
16 lines
367 B
Vue
16 lines
367 B
Vue
<script setup lang="ts">
|
|
const methods = [
|
|
{ value: 'email', label: 'Email' },
|
|
{ value: 'sms', label: 'Phone (SMS)' },
|
|
{ value: 'push', label: 'Push notification' }
|
|
]
|
|
|
|
const selected = ref('sms')
|
|
</script>
|
|
|
|
<template>
|
|
<div class="space-y-1">
|
|
<URadio v-for="method of methods" :key="method.value" v-model="selected" v-bind="method" />
|
|
</div>
|
|
</template>
|