feat: complete field documentation and TextArea examples
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user