JSPM

@instructure/ui-source-code-editor

10.25.1-snapshot-0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 9152
  • Score
    100M100P100Q139339F
  • License MIT

A UI component library made by Instructure Inc.

Package Exports

    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

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