@builder.io/shiki-monaco-editor
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

@builder.io/shiki-editor

A Monaco editor component with Shiki syntax highlighting for React applications.

Installation

npm install @builder.io/shiki-editor

or

yarn add @builder.io/shiki-editor

Usage

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;

Props

(Add a list of available props and their descriptions here)

Contributing

(Add instructions for contributing to the project)

License

MIT

Package Sidebar

Install

npm i @builder.io/shiki-monaco-editor

Weekly Downloads

5

Version

1.0.2

License

MIT

Unpacked Size

38.5 MB

Total Files

2420

Last publish

Collaborators

  • builderio-bot
  • kylefowler
  • midhunadarvin
  • sidmohanty11
  • anaghavarhade
  • harmeet.builder
  • armela
  • strd6
  • murtaza-haveliwala
  • gustavohgs
  • sanyamkamat
  • shyam-builder
  • manucorporat
  • steve8708
  • samijaber
  • teleaziz123
  • mrkoreye
  • mhevery
  • adamdbradley