View Sourceimport { Editor } from 'components'

Editor

This is an editor that can be used to edit the contents of any example. You can prototype a new example, edit an existing one, or create your own.

Props

Editor

View Source

height

string | number

id

number

onChange

(value: string) => void

fontSize

number

value

string

lineNumbers

boolean

folding

boolean

focusRange

{ column: number; lineNumber: number; }

highlightPosition

boolean

onMount

() => void

Examples