package html_of_jsx

  1. Overview
  2. Docs

Module Htmx.ExtensionsSource

Helpers that load official htmx extensions from unpkg.

Each function emits a <script src="..."> tag for the matching htmx-ext-* package. Pin the version in production:

  <Htmx.Extensions.sse version="2.2.2" />
  (* <script src="https://unpkg.com/htmx-ext-sse@2.2.2"></script> *)

See the official extensions list.

Sourceval sse : ?version:string -> unit -> JSX.element

Loads htmx-ext-sse.

Sourceval ws : ?version:string -> unit -> JSX.element

Loads htmx-ext-ws.

Sourceval class_tools : ?version:string -> unit -> JSX.element

Loads htmx-ext-class-tools.

Sourceval preload : ?version:string -> unit -> JSX.element

Loads htmx-ext-preload.

Sourceval path_deps : ?version:string -> unit -> JSX.element

Loads htmx-ext-path-deps.

Sourceval loading_states : ?version:string -> unit -> JSX.element

Loads htmx-ext-loading-states.

Sourceval response_targets : ?version:string -> unit -> JSX.element

Loads htmx-ext-response-targets.

Sourceval head_support : ?version:string -> unit -> JSX.element

Loads htmx-ext-head-support.