Use with Nuxt UI
How to integrate Pracognition into Nuxt UI forms.
Last updated
How to integrate Pracognition into Nuxt UI forms.
Last updated
Since uses its own validation process, there is no way to integrate it with the Precognition protocol directly. However, we can define by passing a function as a form option.
This module provides a special composable - , which returns a validator function compatible with Nuxt UI Form.
Here is an example of using Nuxt UI Form along with Precognition validation:
While using Nuxt UI Form, validation of the fields is triggered automatically according to the form's settings.
Keep in mind that validation and field data manipulation should be done using the Nuxt UI Form instead of the Precognition form in this case. Check how to access Nuxt UI Form methods here - .