Start Here
Quick Start
SmarkForm provides an ECMAScript module (ESM) and a UMD browser bundle. Choose the delivery method that fits your project:
npm: best for projects that already use a package manager and bundler. Install the smarkform package and import its ESM entry point:
npm install smarkform
import SmarkForm from "smarkform";
const myForm = new SmarkForm(document.getElementById("myForm"));
await myForm.rendered;
The UMD bundle exposes SmarkForm as a browser global. For ESM, use a module script or your bundler. The examples in the next pages show complete forms and the standard Quick Start walks through building one.