import { ElementType, ComponentPropsWithoutRef } from 'react'; type As = ElementType; /** * Extract the props of a React element or component */ type PropsOf = ComponentPropsWithoutRef & { as?: As; }; type HTMLProps = Omit, "ref" | "color" | "slot" | OmitKeys> & { as?: As; }; export type { As, HTMLProps, PropsOf };