(defcomp
  ()
  (~docs/page
    :title "Event Bridge"
    (p
      "Server-rendered content inside an island (an htmx \"lake\") can communicate with island signals via DOM custom events. Buttons with "
      (code "data-sx-emit")
      " dispatch events that island effects catch.")
    (~reactive-islands/index/demo-event-bridge)
    (~docs/code
      :src (highlight
        (component-source "~reactive-islands/index/demo-event-bridge")
        "lisp"))
    (p
      "The "
      (code "data-sx-emit")
      " attribute is processed by the client engine — it adds a click handler that dispatches a CustomEvent with the JSON from "
      (code "data-sx-emit-detail")
      ". The event bubbles up to the island container where "
      (code "bridge-event")
      " catches it.")))
