Interface: JsxComponentDescriptor
Defines the structure of a JSX component that can be used within the markdown document.
Properties
Property | Type | Description |
---|---|---|
Editor | ComponentType <JsxEditorProps > | The editor to use for editing the component |
defaultExport? | boolean | Wether the component is the default export of the module |
hasChildren? | boolean | Wether or not the component has children |
kind | "text" | "flow" | Wether the component is a flow or text component (inline or block) |
name | null | string | The tag name. For example: 'div', 'span', 'MyComponent'. Note: For fragments, use null. |
props | JsxPropertyDescriptor [] | The properties that can be applied to the component |
source? | string | The module path from which the component can be imported Omit to skip injecting an import statement |