UNPKG

primereact

Version:

A rich set of premium UI Components for React.

14 lines (13 loc) 718 B
import type { OrganizationChartNodeRow } from '@primereact/types/primitive/organizationchart'; import type * as React from 'react'; export interface OrganizationChartRenderContextValue { /** * The render function passed to `OrganizationChart.Nodes`, called once per node. Shared with * `OrganizationChart.Node` so it can render its children recursively. */ renderNode: (row: OrganizationChartNodeRow) => React.ReactNode; } export declare const OrganizationChartRenderProvider: ({ value, children }: { value: OrganizationChartRenderContextValue; children: React.ReactNode; }) => React.JSX.Element, useOrganizationChartRenderContext: () => OrganizationChartRenderContextValue | undefined;