Type alias TRegistryComponent<Props, Component, Name>

TRegistryComponent<Props, Component, Name>: Component & {
    __crComponentApiTypes: {
        componentName: Name;
        key: string | number;
        props: TReactComponentProps<Component, Props>;
    };
    __crComponentName: Name;
    __crComponentRenderProps: {
        Component: ComponentType<ComponentProps<Component>>;
        componentName: Name;
        key: string | number;
        props: TReactComponentRenderProps<Component, Props>;
    };
}

Type Parameters

  • Props

  • Component extends TReactComponent

  • Name

Type declaration

  • __crComponentApiTypes: {
        componentName: Name;
        key: string | number;
        props: TReactComponentProps<Component, Props>;
    }

    API types

    • componentName: Name
    • key: string | number
    • props: TReactComponentProps<Component, Props>

      API props

  • __crComponentName: Name

    Component name

  • __crComponentRenderProps: {
        Component: ComponentType<ComponentProps<Component>>;
        componentName: Name;
        key: string | number;
        props: TReactComponentRenderProps<Component, Props>;
    }

    Renderer types

    • Component: ComponentType<ComponentProps<Component>>

      Component instance

    • componentName: Name
    • key: string | number
    • props: TReactComponentRenderProps<Component, Props>

      API props