Skip to content

Reference

This section documents the complete public surface of @samline/forms. Pages are grouped by concept — configuration, API, types, browser usage, styling, and examples — so you can scan to what you need without diving into the source.

  • Configuration — every FormControllerOptions field, with defaults and rationale.
  • API — method-by-method signatures, parameters, return shapes, and behaviour tables.
  • TypeScript — every exported type, callback signature, and helper return shape.
  • Browser global — the window.Forms IIFE for no-bundler setups (Shopify, WordPress, classic templates).
  • CSS styling — recipes for the css-filled and css-error attributes.
  • Examples — end-to-end recipes for common real-world scenarios.