mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 11:43:41 +09:00
first
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
---
|
||||
state:
|
||||
textarea: ''
|
||||
---
|
||||
|
||||
### VTextarea
|
||||
|
||||
Vuero provides elegant form controls with minimum styling.
|
||||
`VTextarea` accept all attributes that `<textarea>` accepts.
|
||||
You can control the box text length with the `rows="*"` attribute.
|
||||
Always wrap your inputs inside a `<VField />` and a `<VControl />`
|
||||
to build forms quickly and efficiently.
|
||||
|
||||
<!--code-->
|
||||
|
||||
```vue
|
||||
<script setup lang="ts">
|
||||
|
||||
const textarea = ref('')
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<VField>
|
||||
<VControl>
|
||||
<VTextarea
|
||||
v-model="textarea"
|
||||
rows="4"
|
||||
placeholder="A longer message..."
|
||||
/>
|
||||
</VControl>
|
||||
</VField>
|
||||
</template>
|
||||
```
|
||||
|
||||
<!--/code-->
|
||||
|
||||
<!--example-->
|
||||
|
||||
<VField>
|
||||
<VControl>
|
||||
<VTextarea
|
||||
rows="4"
|
||||
placeholder="A longer message..."
|
||||
v-model="frontmatter.state.textarea"
|
||||
></VTextarea>
|
||||
</VControl>
|
||||
</VField>
|
||||
|
||||
<!--/example-->
|
||||
Reference in New Issue
Block a user