/// type AsProp = { as?: T; }; export type PolymorphicRef = React.ComponentPropsWithRef['ref']; export type PolymorphicProps> = AsProp & React.ComponentPropsWithoutRef & Props & { ref?: PolymorphicRef; }; export type PolymorphicComponent> = ((props: PolymorphicProps) => React.ReactNode) & { displayName?: string; }; export {};