Chakra UI Online Compiler

About the Chakra UI compiler

Modular React component library. Runs in your browser via ESM.sh. Run Chakra UI code in your browser with no install and no signup — the editor, the input and the output share one screen. Chakra 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 Chakra UI example

This is the program the Chakra 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/",
      "@chakra-ui/react": "https://esm.sh/@chakra-ui/react@2?external=react,react-dom",
      "@emotion/react": "https://esm.sh/@emotion/react@11?external=react",
      "@emotion/styled": "https://esm.sh/@emotion/styled@11?external=react,@emotion/react"
    }
  }
  </script>
</head>
<body>
  <div id="root"></div>
  <script type="module">
    import React, { useState } from 'react';
    import { createRoot } from 'react-dom/client';
    import { ChakraProvider, Box, Button, VStack, Heading, Text, Badge, HStack } from '@chakra-ui/react';
    function App() {

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.