mirror of
https://github.com/nuxt/ui.git
synced 2026-09-14 19:51:10 +08:00
5fd94e1365
Co-authored-by: Claude Fable 5 <noreply@anthropic.com> Co-authored-by: Benjamin Canac <canacb1@gmail.com> Co-authored-by: Cursor <cursoragent@cursor.com>
55 lines
1.5 KiB
Vue
55 lines
1.5 KiB
Vue
<script setup lang="ts">
|
|
const toast = useToast()
|
|
|
|
const accounts = [
|
|
{ label: 'Main Checking •8402', value: 'checking' },
|
|
{ label: 'High Yield Savings •1192', value: 'savings' }
|
|
]
|
|
|
|
const amount = ref(1200)
|
|
const from = ref('checking')
|
|
const to = ref('savings')
|
|
</script>
|
|
|
|
<template>
|
|
<div>
|
|
<div class="p-4 space-y-4">
|
|
<div>
|
|
<p class="font-semibold text-highlighted">
|
|
Transfer funds
|
|
</p>
|
|
<p class="text-sm text-muted">
|
|
Move money between your accounts.
|
|
</p>
|
|
</div>
|
|
|
|
<UFormField label="Amount">
|
|
<UInputNumber v-model="amount" :format-options="{ style: 'currency', currency: 'USD' }" class="w-full" />
|
|
</UFormField>
|
|
|
|
<UFormField label="From">
|
|
<USelect v-model="from" :items="accounts" class="w-full" />
|
|
</UFormField>
|
|
|
|
<UFormField label="To">
|
|
<USelect v-model="to" :items="accounts" class="w-full" />
|
|
</UFormField>
|
|
|
|
<div class="space-y-1.5 text-sm">
|
|
<div class="flex justify-between">
|
|
<span class="text-muted">Estimated arrival</span>
|
|
<span class="font-medium text-highlighted">Today</span>
|
|
</div>
|
|
<div class="flex justify-between">
|
|
<span class="text-muted">Transaction fee</span>
|
|
<span class="font-medium text-highlighted">$0.00</span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="flex justify-end border-t border-default p-3">
|
|
<UButton label="Confirm transfer" @click="toast.add({ title: 'Transfer confirmed' })" />
|
|
</div>
|
|
</div>
|
|
</template>
|