PropsWithoutRef<P>: P extends any
    ? "ref" extends keyof P
        ? Omit<P, "ref">
        : P
    : P

Omits the 'ref' attribute from the given props object.

Type Parameters

  • P

    The props object type.