JsxComponentDescriptor interface

Defines the structure of a JSX component that can be used within the markdown document.

Signature:

export interface JsxComponentDescriptor 

Properties

PropertyModifiersTypeDescription
defaultExport?boolean(Optional) Wether the component is the default export of the module
EditorReact.ComponentType<JsxEditorProps>The editor to use for editing the component
hasChildren?boolean(Optional) Wether or not the component has children
kind'flow' | 'text'Wether the component is a flow or text component (inline or block)
namestringThe tag name
propsJsxPropertyDescriptor[]The properties that can be applied to the component
source?string(Optional) The module path from which the component can be imported Omit to skip injecting an import statement