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.
Fields#
disableMarginCollapsing#
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.