Skip to main content

TNodeChildrenRendererProps

export
interface TNodeChildrenRendererProps {
  disableMarginCollapsing?: boolean;
  propsForChildren?: Partial<PropsFromParent>;
  renderChild?: (props: TChildProps) => ReactNode;
  tnode: TNode;
}

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
propsForChildren?: Partial<PropsFromParent>;

Props that will be passed to children renderers via ​propsFromParent.

renderChild#

optional
renderChild?: (props: TChildProps) => ReactNode;

A React render function to render and wrap individual children.

tnode#

required
tnode: TNode;

The ​TNode from which children will be rendered.