Files
heroui-vue/apps/docs/demos/textfield-render-function.vue

17 lines
432 B
Vue
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<script setup lang="ts">
import { Input, Label, TextField } from "@heroui-vue/components";
</script>
<template>
<!-- 上游 render 自定义根节点;Vue 将 data-* 透传到 TextField 根,不支持替换元素类型。 -->
<TextField
class="w-full max-w-64"
data-custom="foo"
name="email"
type="email"
>
<Label>邮箱</Label>
<Input placeholder="输入你的邮箱" />
</TextField>
</template>