;; Playground — demonstrates transparent lazy module loading
(defcomp (&key (title "Playground"))
  (~docs/page :title title
    (h1 "Playground")
    (p "An interactive SX REPL. The " (code "sx freeze") " module "
       "loads transparently when this island hydrates — no import needed.")
    (span :data-sx-island "playground/repl"
      (div (~tw :tokens "mt-6 border border-stone-200 rounded-lg overflow-hidden")
        (div (~tw :tokens "bg-stone-100 px-4 py-2 text-sm font-mono text-stone-500")
          "sx> ")
        (div (~tw :tokens "p-4 font-mono text-sm min-h-[120px] text-stone-400")
          "Loading...")))))
