This commit is contained in:
2025-05-24 01:49:48 +09:00
commit 62abbcf4eb
2376 changed files with 325522 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
---
state:
input: ''
---
### VField
Vuero come with `VField`, `VControl` and `VLabel` which are utility components
to compose **Accessible Forms** with ease.
The component `VField` will keep track of an unique input.
<!--code-->
```vue
<script setup lang="ts">
const input = ref('')
</script>
<template>
<VField>
<VLabel>Username</VLabel>
<VControl>
<VInput
v-model="input"
type="text"
placeholder="john.doe"
/>
</VControl>
</VField>
</template>
```
<!--/code-->
<!--example-->
<VField>
<VLabel>Username</VLabel>
<VControl>
<VInput v-model="frontmatter.state.input" type="text" placeholder="john.doe" />
</VControl>
</VField>
<!--/example-->