Skip to main content

TChildrenBaseProps

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

Common props for TChildren rendering logic.

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.