import { ComponentPropsWithoutRef, DetailedHTMLProps, ElementType, JSXElementConstructor, SVGProps, type JSX } from 'react'; export type NativeElementTag = keyof JSX.IntrinsicElements; export type NativeElementPropsWithoutKeyAndRef = Omit; export type NativeElement = JSX.IntrinsicElements[T] extends DetailedHTMLProps ? E : JSX.IntrinsicElements[T] extends SVGProps ? E : unknown; export type ComponentPropsWithoutKeyAndRef = Omit, 'key'>; export type ComponentOverridableForwardRefComponentPropsFactory, C extends VC, P> = Omit, keyof P> & P, 'component'> & { /** * Override the component used to render. */ component?: VC; };