GeoLeaf Core API - v3.0.0
    Preparing search index...
    • Builds the theme-toggle button for one layout.

      The two variants differ in markup and class names, not in behaviour — both end up calling the same toggle. Kept as one function so the two cannot drift apart.

      Parameters

      • variant: "desktop" | "mobile"

        Which layout the button is for.

      Returns HTMLButtonElement

      The button, not yet attached.