Skip to content

Forms

Typed, labelled controls and validation presentation.

  • Form — Compose a native GET or POST form with validated action URLs and optional HTMX attributes.
  • Hx — First-class HTMX attribute bundle for Form (validated selectors and swap).
  • SwapReveal — Opt-in HTMX after-swap reveal wrapper that respects prefers-reduced-motion.
  • BusyRegion — Generic HTMX busy host for region or document aria-busy and an optional indicator.
  • CsrfField — Hidden CSRF input wired to the active strategy or an explicit token.
  • LoginCsrfField — Hidden input for pre-auth login CSRF (issue_login_csrf / validate_login_csrf).
  • FormField — Bind a label, help text, required state, and field error to one control.
  • Label — Associate visible text with a form control ID.
  • TextInput — Collect a single line of typed text using a constrained input type.
  • TextArea — Collect multi-line plain text.
  • Select — Choose one value from server-defined label/value options.
  • Checkbox — Collect one boolean choice with its visible label.
  • RadioGroup — Choose exactly one option from a labelled set.
  • SubmitButton — Submit the nearest form with consistent primary-action styling.
  • FormErrors — Summarize one or more form-level validation errors.
  • AutoForm — Generate a labelled form from a typed FormModel and optionally submit it through HTMX.
  • CameraCapture — Camera capture file input (capture=environment).
  • ChipInput — Free-text chip/tag multivalue input.
  • ColorInput — Native color picker input.
  • DateInput — Native date input.
  • DateTimeInput — Native datetime-local input.
  • DirectoryUpload — Directory upload input with server-side validation helper.
  • GeolocationButton — Spoofable geolocation form fields with progressive enhancement.
  • MicrophoneCapture — Microphone capture file input (capture=user).
  • MultiSelect — Native multi-select control.
  • NumberInput — Native number input.
  • Pills — Pill-styled segmented choice group.
  • RangeInput — Native range slider input.
  • RatingInput — Accessible 1..n rating radios.
  • SegmentedControl — Segmented radio control group.
  • SelectSlider — Range input with optional datalist marks.
  • TimeInput — Native time input.
  • ToggleSwitch — Switch-styled checkbox control.
  • SecretField — Write-only password editor with explicit keep, replace, and clear operations.