Repository navigation
v2.0.0
Bootstrap Form Builder v2.0.0
Major Release
Version 2.0.0 is a major milestone, introducing modern module support, cleaner architecture, and improved correctness around Bootstrap and HTML semantics.
This release includes deprecating APIs and is recommended for all new projects.
What’s New
ESM & UMD Builds
Bootstrap Form Builder now ships with:
- ESM build for modern bundlers (Vite, Rollup, Webpack, ES modules)
- UMD build for legacy environments and direct
<script>usage
This makes the library usable in:
- Modern frameworks
- Vanilla JS
- Legacy or CDN-based setups
Correct Bootstrap Form Semantics
Form markup generation has been improved to align with Bootstrap's documented patterns:
- Checkbox and radio inputs retain their proper Bootstrap structure
Textarea Support
Native support for <textarea> elements has been added:
- Fully Bootstrap-styled (form-control)
- Attribute validation
- Grid and label support
- Consistent configuration API with inputs and selects
Switch Support
Native support for switches using <input type="check" role="switch"> has been added:
- Fully Bootstrap-styled (
form-switch) - Consistent configuration API with checkbox input
Cleaner Internal Architecture
- Clear separation between
<input>s,<select>s, and<textarea>s - Reduced reliance on structural hacks
- Improved validation and normalization of legacy configs
- More predictable DOM output
Deprecated APIs
The following APIs remain available but are deprecated and will be removed in a future release:
formBuilder- Use
FormBuilderinstead
- Use
- Legacy attribute nesting in configs
- The new pattern is to place the attributes directly on the object
Warnings will be logged when deprecated features are used.
Migration Notes
Most users will not need to change configuration objects. However, you should update imports to use the appropriate ESM or UMD build.
Installation
ESM:
import { FormBuilder } from 'bootstrap-form-builder';
UMD:
<script src="bootstrap-form-builder.umd.js"></script>