mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 02:22:22 +09:00
49 lines
730 B
Markdown
49 lines
730 B
Markdown
---
|
|
state:
|
|
input: ''
|
|
---
|
|
|
|
### VInput
|
|
|
|
Vuero provides elegant form controls with minimum styling.
|
|
`VInput` accept all attributes that `<input>` accepts.
|
|
Always wrap your inputs inside a `<VField />` and a `<VControl />`
|
|
to build forms quickly and efficiently.
|
|
|
|
<!--code-->
|
|
|
|
```vue
|
|
<script setup lang="ts">
|
|
|
|
const input = ref('')
|
|
</script>
|
|
|
|
<template>
|
|
<VField>
|
|
<VControl>
|
|
<VInput
|
|
v-model="input"
|
|
type="text"
|
|
placeholder="Your username"
|
|
/>
|
|
</VControl>
|
|
</VField>
|
|
</template>
|
|
```
|
|
|
|
<!--/code-->
|
|
|
|
<!--example-->
|
|
|
|
<VField>
|
|
<VControl>
|
|
<VInput
|
|
v-model="frontmatter.state.input"
|
|
type="text"
|
|
placeholder="Your username"
|
|
/>
|
|
</VControl>
|
|
</VField>
|
|
|
|
<!--/example-->
|