Skip to main content

TChildrenRendererProps

export
interface TChildrenRendererProps {
  disableMarginCollapsing?: boolean;
  propsForChildren?: Partial<PropsFromParent>;
  renderChild?: (props: TChildProps) => ReactNode;
  tchildren: readonly Array<TNode>;
}

Props for ​TChildrenRenderer.

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.

tchildren#

required
tchildren: readonly Array<TNode>;

An array of ​TNode to render.