A Gleam library for parsing and generating accessible HTML forms.
import formz/field.{field}
import formz/formz_builder as formz
import formz_string/definitions
pub fn make_form() {
formz.decodes(fn(username) { fn(password) { #(username, password) } })
|> formz.require(field("username"), definitions.text_field())
|> formz.require(field("password"), definitions.password_field())
}
See the main package for more details