import type { ComponentPropsWithoutRef, ElementType, FC } from "react"; /** @alpha */ export type ComponentProp = { /** * Overrides the base React component / HTML element that is used for this * component */ Component?: C; }; /** @alpha */ export type PolymorphicComponentProp = Props & Omit, keyof (ComponentProp & Props)> & ComponentProp; /** * A helper type for a component which allows any HTML element to be used as the * base component * * @alpha */ export type PolymorphicComponent = (props: PolymorphicComponentProp>) => ReturnType>; //# sourceMappingURL=helpers.d.ts.map