Package: form

HTML form builder with a fluent API, validation, theming, HTMX integration, and grid layouts.

Package: form

A Go library for building HTML forms with a fluent API: field types, validation rules, theming, HTMX integration, and grid-based layouts. Renders standard HTML markup through the hb builder.

Repository: https://github.com/dracory/form

Installation

go get github.com/dracory/form

Features

  • Field builders for text, email, password, select, checkbox, radio, textarea, file, hidden inputs.
  • Field validation — required, min/max, pattern, custom validators.
  • Theme support and grid layout helpers for multi-column forms.
  • HTMX integration for partial submissions and inline validation.