-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
63 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,29 @@ | ||
<script setup lang="ts"></script> | ||
|
||
<template> | ||
<div>Home</div> | ||
<div class="prose prose-invert"> | ||
<h1>Nuxt Precognition Example</h1> | ||
<div> | ||
<p>This is a playground for testing the Nuxt Precognition module.</p> | ||
<p>There are two different registration form examples which you can try out:</p> | ||
<p> | ||
The first "Register" is a form which uses the <code>useForm</code> composable. Form data is sent to the server | ||
and validated upons submission. | ||
</p> | ||
<p> | ||
The useForm composable is used to provide some very convenient lifecycle hooks for the form, as well as nice | ||
validation and error handling. | ||
</p> | ||
|
||
<NuxtLink to="/register-form">Register Form</NuxtLink> | ||
|
||
<p>The second "Register-Precog"is a form which uses the <code>usePrecognitionForm</code> composable.</p> | ||
<p> | ||
In addition to the features of the <code>useForm</code> composable, the usePrecognitionForm composable also | ||
provides a <code>validate</code> method which can be used to validate the form data before the form is | ||
submitted. This method is called on the @change hook of the inputs to validate as the user is entering data. | ||
</p> | ||
<NuxtLink to="/register-precog">Register Precognition</NuxtLink> | ||
</div> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,5 +12,5 @@ export default { | |
theme: { | ||
extend: {}, | ||
}, | ||
plugins: [], | ||
plugins: [require("@tailwindcss/typography")], | ||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.