A UI component library made by Instructure Inc.
npm install @instructure/ui-code-editor[![npm][npm]][npm-url]
[![MIT License][license-badge]][license]
[![Code of Conduct][coc-badge]][coc]
A code editor component.
The ui-code-editor package contains the following:
``sh`
npm install @instructure/ui-code-editor
`js
import React from 'react'
import { CodeEditor } from '@instructure/ui-code-editor'
const MyCodeEditor = () => {
return (
defaultValue='{"foo": "bar"}'
language="javascript"
readOnly
/>
)
}
``
[npm]: https://img.shields.io/npm/v/@instructure/ui-code-editor.svg
[npm-url]: https://npmjs.com/package/@instructure/ui-code-editor
[license-badge]: https://img.shields.io/npm/l/instructure-ui.svg?style=flat-square
[license]: https://github.com/instructure/instructure-ui/blob/master/LICENSE.md
[coc-badge]: https://img.shields.io/badge/code%20of-conduct-ff69b4.svg?style=flat-square
[coc]: https://github.com/instructure/instructure-ui/blob/master/CODE_OF_CONDUCT.md