Documentation · reference

Why ZidanForm & comparison

Feature matrix, trade-offs and migration notes.

How ZidanForm compares

ZidanForm is not a drop-in replacement for every form library. It targets one job: making native form controls look and feel modern without giving up native form behavior, across selects, checkboxes, switches, radios, file inputs and text fields, with the same API and the same two stylesheets.

At a glance

ZidanFormSelect2Choices.jsTom SelectSlim SelectBootstrap 5
Runtime dependenciesNonejQueryNoneNoneNoneBootstrap CSS/JS
ScopeSelect, checkbox, switch, radio, file, text, phone, stepper, range, date/timeSelect / tagsSelect, text, tagsSelect / tagsSelectStyling of native controls
Input icons & adornmentsAuto, custom SVG, left/right, clickable————Markup (input-group)
Phone number formattingPer country, 3 styles each—————
Number stepperStacked, split, inline, hold-to-repeat————Markup only
Range slider skinsGradient, stepped, minimal, formatter functions————Styled native range
File upload UIBuilt in (dropzone, button, avatar, gallery, compact, progress, previews, limits)————Styled input only
Text input utilitiesClear, reveal, prefix/suffix, counter, floating labels————Markup (input-group)
Date/time picker customizationIcon as picker button, left/right, labels, date rules—————
Built-in validation rulesEvery type, weekend/blocked dates, validation icons————Styles only
Async field validationPromise rules, pending state, abort, stale guards—————
Remote paginated optionsPaged, cached, load-more + scroll auto-loadAJAX adapter—load() callback——
RTLLogical properties, mirrored transformsYesYesYesPartialYes
TypeScript declarationsFull build + both subsetsCommunityBundledBundledBundledBundled
Checkbox / switch / radio UIBuilt in————Native only
Native value / checked / files keptYesYesYesYesYesYes
No-JS init by ID, class or JSONConfig targets, marker classes, data-zidan-options JSONJS selectorJS selectorJS selectorJS selectorJS selector
Split structure / theme CSSYes (plugin-core.css + plugin-theme.css)PartialPartialPartialPartialYes (Sass tokens)
Select-only / file-only bundlesYes — trimmed JS + matching CSSCore is select-onlyCore is select + textCore is select-onlyCore is select-onlyWhole framework
Built-in themes5 + custom tokensThemes via CSSThemes via CSSThemes via CSSThemes via CSS1 (Bootstrap)
CSS-framework adaptersBootstrap, Tailwind, Bulma, Foundation————n/a
Validation coexistence testsjQuery Validation, JustValidate, Parsley, native————Native + framework
Framework supportReact, Next.js, Vue, Angular guidesCommunity wrappersCommunity wrappersCommunity wrappersCommunity wrappersFramework kits
Weight≈224 kB raw JS + two CSS fileslarger, plus jQuerymoderatemoderatesmalllarge (whole framework)

Feature claims above describe each project's core package. Plugins and community add-ons can close some gaps — check the other project's current docs before deciding.

What you get with ZidanForm

Trade-offs to know

Choose ZidanForm when…

Choose another library when…

Migrating between them

ZidanForm enhances the same native elements the other libraries start from, so migration is usually: remove the old library's init call and CSS, add data-zidan attributes (or call initZidanForms()), then keep your existing <select> markup. Values, names and validation attributes do not change — see Migrating from 1.x for the in-library upgrade path.

Markdown source: docs/comparison.md. Generated by scripts/docs.mjs — edit the Markdown, not this page.