[READ-ONLY] Mirror of https://github.com/probablykasper/niceform. Convenient form validation and typing for SvelteKit
0

Configure Feed

Select the types of activity you want to include in your feed.

Document snapshots

authored by

Kasper and committed by
GitHub
(Feb 1, 2025, 9:31 AM +0100) 21062d9c cc69c873

+18
+18
README.md
··· 77 77 78 78 export const email_schema = z.string().email(form_errors.invalid_email).max(100) 79 79 ``` 80 + 81 + ### Snapshots 82 + 83 + Might change this API 84 + 85 + ``` 86 + <script lang="ts"> 87 + import { enhance } from '$app/forms' 88 + import { auto_snapshot } from '$lib/niceform' 89 + 90 + const snapshotter = auto_snapshot() 91 + export const snapshot = auto_snapshot() 92 + </script> 93 + 94 + <form method="post" use:enhance use:snapshotter.container> 95 + <Input {form} type="text" data-snapshot /> 96 + </form> 97 + ```