category: packages
ui-code-editor
A code editor component.
Components
The ui-code-editor
package contains the following:
Installation
yarn add @temporg/ui-code-editor
Usage
import React from 'react'
import { CodeEditor } from '@temporg/ui-code-editor'
const MyCodeEditor = () => {
return (
<CodeEditor
label='code editor'
defaultValue='{"foo": "bar"}'
language='javascript'
readOnly
/>
)
}