This project is an Astro website that demonstrates the usage of the cruddy-forms module, a TypeScript library for generating HTML forms with TypeBox validation.
cruddy-forms is a powerful TypeScript library that allows you to generate HTML forms with built-in validation using TypeBox. It provides a simple and type-safe way to create forms for your web applications.
The purpose of this demo is to showcase how to integrate and use cruddy-forms in an Astro-based website. It provides practical examples of form generation, validation, and submission using the cruddy-forms library.
- Demonstrates various form types and input fields
- Shows how to integrate cruddy-forms with Astro
- Provides examples of client-side and server-side validation
- Illustrates form submission and handling
-
Clone this repository:
git clone https://github.com/your-username/cruddy-forms-demo.git
-
Install dependencies:
cd cruddy-forms-demo npm install
-
Start the development server:
npm run dev
-
Open your browser and navigate to
http://localhost:3000
to see the demo in action.
(Add information about the project structure here once it's set up)
This demo includes the following examples:
- Basic Form
- Custom Server-side Validation
- Testing Server-side Validation
- Filling in Default Values
- Password Reveal Button
- Internationalization
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
- cruddy-forms - The core library used for form generation and validation
- Astro - The web framework used for building this demo
If you have any questions or feedback, please open an issue on this repository.