Textarea
vue
<template>
<div>
<Textarea
label="Project Description*"
name="pd"
placeholder="Write a short description about your project"
/>
</div>
</template>
<script setup>
import Textarea from "@/components/Textarea";
</script>
TIP
You can use html textarea attribute via props. For example: name="pd"
, placeholder="Write a short description about your project"
You can also use label
props for label text.
Note
For label and textarea connection use name
props. You can also make textarea horizontal
by using horizontal
props. Pass error
& success
props for error message.