docs: improve forms usage with examples

This commit is contained in:
Benjamin Canac
2023-06-12 14:34:12 +02:00
parent 429791dab0
commit bc81d45b2b
13 changed files with 172 additions and 36 deletions

View File

@@ -5,11 +5,22 @@ description: Display an input field.
## Usage
::component-card
---
baseProps:
name: 'input'
---
Use a `v-model` to make the Input reactive.
::component-example
#default
:input-example
#code
```vue
<script setup>
const value = ref('')
</script>
<template>
<UInput v-model="value" />
</template>
```
::
### Style