Grid

Url State Form

Saving the form state in the URL with React Hook Forms

Preview

Loading...

Installation

npx shadcn@latest add https://www.form.coolhead.com/registry/url-state-form.json

Saving the form state in the URL

This example demonstrates how to save the form state in the URL using React Hook Forms and Nuqs. This allows users to share the form state easily and revisit it later without losing their progress.

How it works