solid-validation

solid-validation

Lightweight, flexible form validation for Solid.js.

solid-validation is a validation library built for Solid.js. It offers a clean, reactive API for handling form input validation, submission state, and error messaging — with support for custom logic and backend integration. It’s fast, ergonomic, and integrates seamlessly with real-world workflows.


Installation

npm install @sparkstone/solid-validation

or

pnpm add @sparkstone/solid-validation

Features

  • Simple form handling: Hook into form submission and manage input-level and global errors with built-in helpers.
  • Reactive state: Track isSubmitting, isSubmitted, and live validation errors as part of your UI.
  • Custom validators: Use your own validation functions alongside native input validation.
  • PocketBase support: Includes helpers to integrate with PocketBase forms and handle server-side validation errors cleanly.

“We made solid-validation to give Solid.js devs a simple, ergonomic way to handle forms — no dependencies, no fuss.”
— The Sparkstone Team


View source

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *