| autoFocus | boolean | false | | Focuses the editor once it mounts. |
| containerClass | string? | '' | | Classes for the outer wrapper; give it a bounded height. |
| content | string | — | | Bindable editor document. The eye resets to the default content. |
| docType | string | 'text' | | Language pack key: json, javascript, html, markdown, yaml, or xml (loaded on demand). 'text' loads none. |
| editable | boolean | true | | Enables typing; false renders read-only. |
| editorClass | string? | '' | | Classes for the CodeMirror host; use h-full inside a sized wrapper. |
| maxContentLength | number? | 0 | | Caps the document length; 0 disables the cap. |
| editorAriaLabel | string? | editor.content | | Accessible name for the editor textbox; unset, the localized editor.content key renders. |
| recreateKey | string? | '' | | Changing it destroys and rebuilds the editor. |
| size | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | number | 'md' | | Editor text scale; numbers are icon-scale pixels. The font, content padding, and loading text follow it. |
| onAutoFocused | () => void | — | — | Called after an autofocus. |
| onContentChange | (content: string) => void | — | — | Called with the document after every edit. |
| onReady | () => void | — | — | Called once the EditorView exists. |