Interface CustomComponentOverride<Props>

Component override type - supports both full replacement and render wrapping

interface CustomComponentOverride<Props> {
    component?: ComponentType<Props>;
    render?: ((props: Props) => ReactNode);
}

Type Parameters

  • Props

Properties

Properties

component?: ComponentType<Props>

Completely replace the default component

render?: ((props: Props) => ReactNode)

Wrap or augment the default component's render