Library
core
modules
Core Src Renderer Common Docx Component

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

NameType
TTagextends string

Call signature

▸ <P>(props): DOMElement<P & { children?: React.ReactNode }, Element>

Type parameters
Name
P
Parameters
NameType
propsPropsWithChildren<P>
Returns

DOMElement<P & { children?: React.ReactNode }, Element>

Type declaration

NameType
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

NameType
TTagextends string

Parameters

NameType
tagTTag

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

NameType
PP
TComponentIDextends string

Parameters

NameType
docxComponentIDTComponentID
ComponentComponentType<P & DOCXComponentProps>

Returns

FC<P & DOCXComponentProps> & { componentID: TComponentID }

Defined in

core/src/renderer/common/docx/component.tsx:13 (opens in a new tab)