People & services
Registration · contact · booking
A small interaction
Not a corner case
Registration · contact · booking
Administration · data entry · inventory
Shopping · scheduling · configuration
Yet each new interface often brings another round of familiar plumbing.
A personal example
01
One set of details
02
A similar set
03–04
Two more participants
The structure repeats. Some values repeat. Some details change.
A clarification
It's about avoiding writing the same JavaScript over and over again.
The recurring work
Keep DOM state and data synchronized
Collect nested fields into objects
Add, remove, clear, and reorder items
Import and export structured data
Resolve fields, parents, and actions
Connect reusable behavior to controls
Two sides of repetition
A little perspective
HTML 2.0 includes form elements.
RFC 1866 — HTML 2.0W3C publishes requirements for XHTML forms.
W3C XHTML Forms RequirementsForms remain fundamental to web applications.
A little time travel
Live example · open in a new tab
Name · age · meal · emergency contact
Repeated item forms → structured array
Beyond the registration form
Cards, columns, nested details, keyboard shortcuts — still structured state.
Open the Kanban fullscreen ↗The component model
A small set of markup attributes identifies fields and their behavior.
The component tree provides parentage and context as SmarkForm traverses it.
Describe the component in markup.
Let the hierarchy provide the context.
Everything is a field
A list has one field type; that item's type determines the shape of each value. Forms and lists can compose recursively.
Explore the core concepts ↗From markup to data
The page's animated example shows a hierarchy of forms and lists becoming a nested data value.
See the homepage walkthrough ↗
A structured interface, not just a form
A display field holds the expression.
Buttons and keyboard input update that state.
A possible application, not a product claim
Catalog · variations · options
Lines · quantities · nested details
Contact information · preferences
SmarkForm can help manage structure and interactions. The application still owns the business.
A foundation, not a takeover
The design principle
Markup · CSS · semantics · business logic
Reusable component structure and interactions
Build the form. Not the plumbing.
Keep the freedom of HTML. Lose the repetitive form plumbing.