TNodeChildrenRendererProps
export
interface
TNodeChildrenRendererProps
{
 Â
disableMarginCollapsing
?
:
boolean
;
 Â
propsForChildren
?
:
Partial
<
PropsFromParent
>
;
 Â
renderChild
?
:
(
props
:
TChildProps
)
=>
ReactNode
;
 Â
tnode
:
TNode
;
}
Defined in packages/render-html/src/shared-types.ts
Props for ​TNodeChildrenRenderer
.
#
FieldsdisableMarginCollapsing
#
optional
disableMarginCollapsing
?
:
boolean
;
When ​enableExperimentalMarginCollapsing
is
enabled, this prop will be true by default. But you can opt-out when
rendering children.
propsForChildren
#
optional
Props that will be passed to children renderers via
​propsFromParent
.
renderChild
#
optional
A React render function to render and wrap individual children.
tnode
#
required
The ​TNode
from which children will be rendered.