mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-26 01:40:34 +01:00
docs(form): update (#2167)
Co-authored-by: Benjamin Canac <canacb1@gmail.com>
This commit is contained in:
17
docs/content/2.composables/use-form-field.md
Normal file
17
docs/content/2.composables/use-form-field.md
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
title: useFormField
|
||||
description: 'A composable to integrate custom inputs with the Form component'
|
||||
navigation:
|
||||
badge:
|
||||
label: Todo
|
||||
---
|
||||
|
||||
## Usage
|
||||
|
||||
Use the auto-imported `useFormField` composable to integrate custom inputs with a [Form](/components/form).
|
||||
|
||||
```vue
|
||||
<script setup lang="ts">
|
||||
const { inputId, emitFormBlur, emitFormInput, emitFormChange } = useFormField()
|
||||
</script>
|
||||
```
|
||||
Reference in New Issue
Block a user