Library
core
modules
Core Src Renderer Common HTML

Lawtext core references / core/src/renderer/common/html

Module: core/src/renderer/common/html

Table of contents

Namespaces

Interfaces

Type Aliases

Functions

Type Aliases

GetFigData

Ƭ GetFigData: (src: string) => FigData | null

Type declaration

▸ (src): FigData | null

Parameters
NameType
srcstring
Returns

FigData | null

Defined in

core/src/renderer/common/html.tsx:18 (opens in a new tab)


WrapperComponentProps

Ƭ WrapperComponentProps: Object

Type declaration

NameType
ChildComponentReact.ComponentType<HTMLComponentProps>
childPropsHTMLComponentProps
htmlComponentIDstring

Defined in

core/src/renderer/common/html.tsx:7 (opens in a new tab)

Functions

HTMLMarginSpan

HTMLMarginSpan(props, context?): ReactNode

Parameters

NameType
propsHTMLAttributes<HTMLSpanElement>
context?any

Returns

ReactNode

Defined in

core/node_modules/@types/react/index.d.ts:565


elProps

elProps(el, htmlOptions): Record<string, string>

Parameters

NameType
elEL
htmlOptionsHTMLOptions

Returns

Record<string, string>

Defined in

core/src/renderer/common/html.tsx:56 (opens in a new tab)


wrapHTMLComponent

wrapHTMLComponent<P, TComponentID>(htmlComponentID, Component): FC<P & HTMLComponentProps> & { componentID: TComponentID }

Type parameters

NameType
PP
TComponentIDextends string

Parameters

NameType
htmlComponentIDTComponentID
ComponentComponentType<P & HTMLComponentProps>

Returns

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

Defined in

core/src/renderer/common/html.tsx:37 (opens in a new tab)