JSPM

@instructure/ui-source-code-editor

10.6.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9152
  • Score
    100M100P100Q136158F
  • License MIT

A UI component library made by Instructure Inc.

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

npm MIT License Code of Conduct

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
    />
  )
}