We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f4aa74 commit ca78514Copy full SHA for ca78514
docs/src/pages/api/use-field.mdx
@@ -122,6 +122,20 @@ You can also bind it with `v-model` to get two-way value binding with validation
122
123
<CodeTitle level="4">
124
125
+`setValue: Ref<TValue = unknown>`
126
+
127
+</CodeTitle>
128
129
+A method to update the fields value.
130
131
+```js
132
+const { setValue } = useField('field', value => !!value);
133
134
+setValue('hello world') // sets the value and validates the field
135
+```
136
137
+<CodeTitle level="4">
138
139
`meta: FieldMeta<TValue = unknown>`
140
141
</CodeTitle>
0 commit comments