@instructure/ui-source-code-editor
v8.55.1
Published
A UI component library made by Instructure Inc.
Downloads
13,487
Maintainers
Keywords
Readme
category: packages
ui-source-code-editor
A code editor component.
Components
The ui-source-code-editor
package contains the following:
Installation
npm install @instructure/ui-source-code-editor
Usage
import React from 'react'
import { SourceCodeEditor } from '@instructure/ui-source-code-editor'
const MyCodeEditor = () => {
return (
<SourceCodeEditor
label="code editor"
defaultValue='{"foo": "bar"}'
language="javascript"
readOnly
/>
)
}