Lawtext core references / core/src/renderer/common/docx/component
Module: core/src/renderer/common/docx/component
Table of contents
Interfaces
Type Aliases
Variables
Functions
Type Aliases
ComponentWithTag
Ƭ ComponentWithTag<TTag
>: Object
Type parameters
Name | Type |
---|---|
TTag | extends string |
Call signature
▸ <P
>(props
): DOMElement
<P
& { children?
: React.ReactNode
}, Element
>
Type parameters
Name |
---|
P |
Parameters
Name | Type |
---|---|
props | PropsWithChildren <P > |
Returns
DOMElement
<P
& { children?
: React.ReactNode
}, Element
>
Type declaration
Name | Type |
---|---|
displayName | `ComponentWithTag<${TTag}>` |
Defined in
core/src/renderer/common/docx/component.tsx:22 (opens in a new tab)
Variables
DOCXMargin
• Const
DOCXMargin: " "
Defined in
core/src/renderer/common/docx/component.tsx:3 (opens in a new tab)
Functions
makeComponentWithTag
▸ makeComponentWithTag<TTag
>(tag
): ComponentWithTag
<TTag
>
Type parameters
Name | Type |
---|---|
TTag | extends string |
Parameters
Name | Type |
---|---|
tag | TTag |
Returns
ComponentWithTag
<TTag
>
Defined in
core/src/renderer/common/docx/component.tsx:29 (opens in a new tab)
wrapDOCXComponent
▸ wrapDOCXComponent<P
, TComponentID
>(docxComponentID
, Component
): FC
<P
& DOCXComponentProps
> & { componentID
: TComponentID
}
Type parameters
Name | Type |
---|---|
P | P |
TComponentID | extends string |
Parameters
Name | Type |
---|---|
docxComponentID | TComponentID |
Component | ComponentType <P & DOCXComponentProps > |
Returns
FC
<P
& DOCXComponentProps
> & { componentID
: TComponentID
}
Defined in
core/src/renderer/common/docx/component.tsx:13 (opens in a new tab)