shadcn/ui Online Compiler

About the shadcn/ui compiler

Beautifully designed components built with Radix UI and Tailwind CSS. Run shadcn/ui code in your browser with no install and no signup — the editor, the input and the output share one screen. shadcn/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 shadcn/ui example

This is the program the shadcn/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-dialog": "https://esm.sh/@radix-ui/react-dialog@1?external=react,react-dom",
      "@radix-ui/react-dropdown-menu": "https://esm.sh/@radix-ui/react-dropdown-menu@2?external=react,react-dom",
      "@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",
      "@radix-ui/react-slot": "https://esm.sh/@radix-ui/react-slot@1?external=react,react-dom"
    }
  }
  </script>
  <script src="https://cdn.tailwindcss.com"></script>
  <script>
    tailwind.config = {
      theme: {
        extend: {
          colors: {

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.