mirror of
https://github.com/keven1024/015.git
synced 2026-05-26 15:13:30 +00:00
17 lines
422 B
Vue
17 lines
422 B
Vue
<template>
|
|
<Field :name="props.name" v-slot="{ field }">
|
|
<div class="flex flex-col gap-2">
|
|
<Label v-if="props.label">{{ props.label }}</Label>
|
|
<Input v-bind="field" :placeholder="props.placeholder" />
|
|
</div>
|
|
</Field>
|
|
</template>
|
|
<script setup lang="ts">
|
|
import { Input } from '~/components/ui/input'
|
|
const props = defineProps<{
|
|
name: string
|
|
label?: string
|
|
placeholder?: string
|
|
}>()
|
|
</script>
|