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.
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.
tchildren#
required
An array of ​TNode to render.