JsxComponentDescriptor interface
Defines the structure of a JSX component that can be used within the markdown document.
Signature:
export interface JsxComponentDescriptor
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
defaultExport? | boolean | (Optional) Wether the component is the default export of the module | |
Editor | React.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) | |
name | string | The tag name | |
props | JsxPropertyDescriptor[] | 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 |