@instructure/ui-code-editor

A UI component library made by Instructure Inc.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
@instructure/ui-code-editor
387108.29.03 days ago5 years agoMinified + gzip package size for @instructure/ui-code-editor in KB

Readme

---

category: packages

ui-code-editor

!npmnpmnpm-url  !MIT Licenselicense-badgelicense  !Code of Conductcoc-badgecoc
A code editor component.

Components

The ui-code-editor package contains the following:

Installation

yarn add @instructure/ui-code-editor

Usage

import React from 'react'
import { CodeEditor } from '@instructure/ui-code-editor'

const MyCodeEditor = () => {
  return (
    <CodeEditor
      label="code editor"
      defaultValue='{"foo": "bar"}'
      language="javascript"
      readOnly
    />
  )
}