Radix UI Online Compiler

About the Radix UI compiler

Unstyled, accessible UI components. Runs in your browser via ESM.sh. Run Radix UI code in your browser with no install and no signup — the editor, the input and the output share one screen. Radix UI compiles and runs on your own device through WebAssembly, so once the page has loaded it keeps working without a network connection.

Press Run to execute the program, edit it and press Run again, or paste your own code over it. Everything you type stays in the page; the editor caches your work locally so a reload does not lose it.

A Radix UI example

This is the program the Radix UI editor opens with — run it as it is, then change it.

<!DOCTYPE html>
<html>
<head>
  <script type="importmap">
  {
    "imports": {
      "react": "https://esm.sh/react@18",
      "react/": "https://esm.sh/react@18/",
      "react-dom": "https://esm.sh/react-dom@18",
      "react-dom/": "https://esm.sh/react-dom@18/",
      "@radix-ui/react-tabs": "https://esm.sh/@radix-ui/react-tabs@1?external=react,react-dom",
      "@radix-ui/react-tooltip": "https://esm.sh/@radix-ui/react-tooltip@1?external=react,react-dom"
    }
  }
  </script>
  <style>
    body { font-family: system-ui, sans-serif; padding: 2rem; }
    .tabs { display: flex; border-bottom: 2px solid #eee; margin-bottom: 1rem; }
    .tab { padding: 0.5rem 1rem; border: none; background: none; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
    .tab[data-state="active"] { border-bottom-color: #6366f1; color: #6366f1; }
    .panel { padding: 1rem 0; }
    .tooltip { background: #1a1a1a; color: white; padding: 0.4rem 0.8rem; border-radius: 4px; font-size: 0.8rem; }
  </style>
</head>

The editor opens with the full program.

More Web UI Frameworks compilers

Browse all 109 languages — the same editor runs each of them, in the browser or on a shared runner.