Package Exports
- @instructure/ui-source-code-editor
- @instructure/ui-source-code-editor/es/index.js
- @instructure/ui-source-code-editor/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@instructure/ui-source-code-editor) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
category: packages
ui-source-code-editor
A code editor component.
Components
The ui-source-code-editor package contains the following:
Installation
yarn add @instructure/ui-source-code-editorUsage
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
/>
)
}