Files
heroui-vue/apps/docs/demos/input-controlled.vue
T

14 lines
386 B
Vue

<script setup lang="ts">
import { Input } from "@heroui-vue/components";
import { ref } from "vue";
const value = ref("heroui.com");
</script>
<template>
<div class="flex w-80 flex-col gap-2">
<Input v-model="value" aria-label="域名" placeholder="域名" />
<span class="px-1 text-sm text-muted">
https://{{ value || "你的域名" }}
</span>
</div>
</template>