MCPcopy
hub / github.com/chakra-ui/ark / PolymorphicProps

Interface PolymorphicProps

packages/react/src/components/factory.ts:16–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14import { composeRefs } from '../utils/compose-refs'
15
16export interface PolymorphicProps {
17 /**
18 * Use the provided child element as the default rendered element, combining their props and behavior.
19 */
20 asChild?: boolean | undefined
21}
22
23type JsxElements = { [E in keyof JSX.IntrinsicElements]: ArkForwardRefComponent<E> }
24type ArkForwardRefComponent<E extends React.ElementType> = React.ForwardRefExoticComponent<ArkPropsWithRef<E>>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected