Files
heroui-vue/apps/docs/demos/form-custom-styles.vue
T

17 lines
514 B
Vue

<script setup lang="ts">
import { Button, Form, Input, Label, TextField } from "@heroui-vue/components";
</script>
<template>
<Form
class="flex w-80 max-w-full flex-col gap-3 rounded-xl border border-border/80 bg-surface p-4 shadow-sm"
@submit.prevent
>
<TextField is-required name="email" type="email">
<Label>工作邮箱</Label>
<Input class="bg-field" placeholder="you@company.com" />
</TextField>
<Button class="w-full" type="submit">继续</Button>
</Form>
</template>