Interface DelegateContext<P, E>

A context that carries props and a ref that can be consumed by descendants of a provider.

interface DelegateContext<P, E> {
    context: Context<Readonly<DelegateValue<P, E>>>;
    Provider: ((props: DelegateProviderProps<P, E>) => ReactNode);
}

Type Parameters

  • P

    Delegated props.

  • E

    An element to which props are delegated.

Properties

Properties

context: Context<Readonly<DelegateValue<P, E>>>
Provider: ((props: DelegateProviderProps<P, E>) => ReactNode)