/** * Copyright IBM Corp. 2025, 2026 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ type AsProp = { as?: C; }; type PropsToOmit = keyof (AsProp & P); export type PolymorphicComponentProp> = React.PropsWithChildren> & Omit, PropsToOmit>; export type PolymorphicRef = React.ComponentPropsWithRef['ref']; export type PolymorphicComponentPropWithRef> = PolymorphicComponentProp & { ref?: PolymorphicRef; }; export {};