monaco-editor-react
Installation
SKILL.md
Monaco editor in React
Package: @monaco-editor/react.
"use client";
import Editor from "@monaco-editor/react";
<Editor
height="400px"
language="python"
theme="vs-dark"
value={code}
onChange={(v) => setCode(v ?? "")}
options={{ minimap: { enabled: false }, fontSize: 14, automaticLayout: true, scrollBeyondLastLine: false }}
/>