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
Name | Type |
---|---|
src | string |
Returns
FigData
| null
Defined in
core/src/renderer/common/html.tsx:18 (opens in a new tab)
WrapperComponentProps
Ƭ WrapperComponentProps: Object
Type declaration
Name | Type |
---|---|
ChildComponent | React.ComponentType <HTMLComponentProps > |
childProps | HTMLComponentProps |
htmlComponentID | string |
Defined in
core/src/renderer/common/html.tsx:7 (opens in a new tab)
Functions
HTMLMarginSpan
▸ HTMLMarginSpan(props
, context?
): ReactNode
Parameters
Name | Type |
---|---|
props | HTMLAttributes <HTMLSpanElement > |
context? | any |
Returns
ReactNode
Defined in
core/node_modules/@types/react/index.d.ts:565
elProps
▸ elProps(el
, htmlOptions
): Record
<string
, string
>
Parameters
Name | Type |
---|---|
el | EL |
htmlOptions | HTMLOptions |
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
Name | Type |
---|---|
P | P |
TComponentID | extends string |
Parameters
Name | Type |
---|---|
htmlComponentID | TComponentID |
Component | ComponentType <P & HTMLComponentProps > |
Returns
FC
<P
& HTMLComponentProps
> & { componentID
: TComponentID
}