ComponentProps<T>: T extends JSXElementConstructor<infer P>
    ? P
    : T extends keyof JSX.IntrinsicElements
        ? JSX.IntrinsicElements[T]
        : {}

NOTE: prefer ComponentPropsWithRef, if the ref is forwarded, or ComponentPropsWithoutRef when refs are not supported.

Type Parameters