Skip to content

IndependentCreator/cruddy-forms-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cruddy-forms-demo

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.

About cruddy-forms

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.

Purpose of this Demo

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.

Features

  • 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

Getting Started

  1. Clone this repository:

    git clone https://github.com/your-username/cruddy-forms-demo.git
    
  2. Install dependencies:

    cd cruddy-forms-demo
    npm install
    
  3. Start the development server:

    npm run dev
    
  4. Open your browser and navigate to http://localhost:3000 to see the demo in action.

Project Structure

(Add information about the project structure here once it's set up)

Examples

This demo includes the following examples:

  1. Basic Form
  2. Custom Server-side Validation
  3. Testing Server-side Validation
  4. Filling in Default Values
  5. Password Reveal Button
  6. Internationalization

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

  • cruddy-forms - The core library used for form generation and validation
  • Astro - The web framework used for building this demo

Contact

If you have any questions or feedback, please open an issue on this repository.

About

Demo website for the cruddy-forms typescript module

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published