Interface: SandpackEditorProps
The properties passed to the CodeBlockEditorDescriptor.Editor component.
Extends
Properties
Property | Type | Description | Inherited from |
---|---|---|---|
code | string | The code to edit. | CodeBlockEditorProps .code |
focusEmitter | VoidEmitter | An emitter that will execute its subscription when the editor should be focused. Note: you don't need to unsubscribe, the emiter has a single subscription model. | CodeBlockEditorProps .focusEmitter |
language | string | The language of the fenced code block. | CodeBlockEditorProps .language |
meta | string | The meta of the fenced code block. | CodeBlockEditorProps .meta |
nodeKey | string | The key of the Lexical node - use this if you are dealing with the Lexical APIs. | CodeBlockEditorProps .nodeKey |
preset | SandpackPreset | - | - |