Skip to contents

Page

Build a complete HTML page with htmx support.

hx_page()
Generate a complete HTML page with htmx
hx_head()
Specify additional head elements for an htmxr page
hx_serve_assets()
Serve htmxr static assets

Inputs

Interactive input components wired to htmx requests.

hx_button()
Button element
hx_select_input()
Select input
hx_slider_input()
Slider input

Table

Generate and update HTML tables via htmx swaps.

hx_table()
Table with htmx-powered tbody
hx_table_rows()
Table rows fragment

htmx modifiers

Add or modify htmx attributes on any HTML element.

hx_set()
Add htmx attributes to any HTML tag

Server

Server-side utilities for handling htmx requests.

htmxr_is_htmx()
Detect if a request comes from htmx

Developer tools

Helpers for running and exploring built-in examples.

hx_run_example()
Run an htmxr example