mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 07:13:44 +09:00
first
This commit is contained in:
45
documentation/field/v-field-base-documentation.md
Normal file
45
documentation/field/v-field-base-documentation.md
Normal 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-->
|
||||
Reference in New Issue
Block a user