ZidanForm: A Powerful, Zero-Dependency JavaScript Library to Modernize HTML Forms

Modern websites need forms that are attractive, user-friendly, responsive, and accessible. Whether it's a registration form, contact form, checkout page, or dashboard, form elements play an important role in the overall user experience.
However, building consistent and feature-rich form components often requires multiple JavaScript libraries, additional CSS, and complicated integrations.
ZidanForm aims to make this process easier.
ZidanForm is a zero-dependency JavaScript form enhancement library designed to upgrade native HTML form elements with modern styling, useful interactions, and powerful functionality — without replacing the underlying form controls.
What Is ZidanForm?
ZidanForm is an all-in-one form enhancement solution that supports a wide range of HTML form elements, including:
- Custom select dropdowns and searchable combo boxes
- Checkboxes and toggle switches
- Radio buttons
- File upload fields with progress indicators
- Text, number, email, phone, date, and time inputs
- Number steppers
- Range sliders
- Input icons and adornments
- Tags and multi-select helpers
Instead of building every form component separately, developers can use one library to create a consistent form experience.
Key Features That Make ZidanForm Different
1. Zero Dependencies
ZidanForm works without requiring jQuery or other external JavaScript libraries.
This makes integration simpler and allows developers to use it in existing projects without introducing additional runtime dependencies.
2. Modern Themes and Layouts
Every website has its own visual identity. ZidanForm offers multiple themes and layout options to help developers create forms that match their design requirements.
Available themes include:
- Default
- Modern
- Minimal
- Dark
- Glass
- Auto
It also supports different field layouts, including floating labels, outlined fields, compact layouts, and card-style designs.
3. Native HTML Form Compatibility
One of the most important features of ZidanForm is its native-first approach.
The original HTML form controls remain in the DOM, helping preserve important browser functionality such as:
- FormData support
- Native form validation
- Required field behaviour
- Form reset functionality
- File input values
- Keyboard accessibility
This allows developers to improve the user interface without completely changing how their forms work.
4. Advanced File Upload Functionality
File uploads are an essential part of many websites.
ZidanForm provides multiple file upload presentation styles, including:
- Drag-and-drop upload
- Button upload
- Avatar upload
- Gallery upload
- Compact upload
It also supports upload progress, cancellation, custom upload handlers, retry mechanisms, and image downscaling.
5. Powerful Form Validation
Form validation helps prevent incomplete or incorrect submissions.
ZidanForm supports native validation alongside additional validation functionality, including asynchronous validation rules.
It can also work with popular validation solutions such as jQuery Validation, JustValidate, and Parsley.
6. Framework and CSS Compatibility
ZidanForm is designed to fit into different development environments.
It includes integration guides for:
- React
- Next.js
- Vue
- Svelte
- Angular
It also provides styling adapters for Bootstrap 5, Tailwind CSS, Bulma, and Foundation.
Easy Installation
Getting started with ZidanForm is straightforward.
Install the package using npm:
npm install zidan-select
Import the library and stylesheets into your project:
import ZidanForm from 'zidan-select';
import 'zidan-select/css/core';
import 'zidan-select/css/theme';
Developers can also use the CDN version without setting up a build process.
Lightweight, Flexible and Developer-Friendly
ZidanForm is designed for developers who want more control over their form interfaces without introducing multiple dependencies.
Its modular architecture also allows developers to choose a specific build depending on their requirements.
For example:
- Use the complete bundle when enhancing multiple form elements.
- Use the select-only build when you only need custom dropdowns.
- Use the file-only build when you only need advanced file upload functionality.
This flexibility makes it suitable for both small websites and larger web applications.
Explore the Live Demo
Want to see ZidanForm in action?
Explore the interactive demo to experience its dropdowns, checkboxes, switches, radio buttons, file uploads, input controls, themes, and layouts.
Live Demo: https://akhtar1985.github.io/zidan-select/
GitHub Repository: https://github.com/akhtar1985/zidan-select
NPM Package: https://www.npmjs.com/package/zidan-select
Final Thoughts
Creating beautiful and functional forms shouldn't require several different libraries.
ZidanForm brings a wide range of form enhancements together in one flexible JavaScript solution. With zero runtime dependencies, multiple themes, native HTML compatibility, advanced validation, and modular builds, it provides developers with a practical way to modernize their forms.
If you're looking for a flexible way to improve HTML forms while keeping their native functionality, give ZidanForm a try.
Explore the project, test the live demo, and contribute to its development on GitHub.
Build better forms. Keep things simple. Choose ZidanForm.
Comments
Join the discussionNo comments yet. Be the first to comment.