A Monaco editor component with Shiki syntax highlighting for React applications.
npm install @builder.io/shiki-editor
or
yarn add @builder.io/shiki-editor
import React from 'react';
import { ShikiMonacoEditor } from '@builder.io/shiki-editor';
const MyComponent = () => {
return (
<ShikiMonacoEditor
width="800"
height="600"
language="javascript"
theme="vs-dark"
value="console.log('Hello, world!');"
onChange={(newValue, event) => {
console.log('Editor content changed:', newValue);
}}
/>
);
};
export default MyComponent;
(Add a list of available props and their descriptions here)
(Add instructions for contributing to the project)
MIT