TChildrenRendererProps
export
interface
TChildrenRendererProps
{
 Â
disableMarginCollapsing
?
:
boolean
;
 Â
propsForChildren
?
:
Partial
<
PropsFromParent
>
;
 Â
renderChild
?
:
(
props
:
TChildProps
)
=>
ReactNode
;
 Â
tchildren
:
readonly
Array
<
TNode
>
;
}
Defined in packages/render-html/src/shared-types.ts
Props for ​TChildrenRenderer
.
#
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.
tchildren
#
required
An array of ​TNode
to render.