createComponent<Nextendsnever,BextendsElementType>( name:N, base:B& ( Extract< keyofAxes<Extract<Record<never,never>[N],RecipeDefinition>>, keyofComponentProps<B>, >extendsnever ?unknown :{error:"Recipe variants must not replace inherited props"} ), render?:(context:RecipeRenderContext<N,B>)=>ReactNode, ):(props:ExtendedComponentProps<N,B>)=>ReactNode
Extends an existing component or native element with a config recipe.
Preserves inherited attributes, refs and behavior. Visual variant props are consumed rather
than passed to the base component. A render callback can apply named slots to custom markup.
Recipe axes must not collide with inherited props.
Extends an existing component or native element with a config recipe. Preserves inherited attributes, refs and behavior. Visual variant props are consumed rather than passed to the base component. A render callback can apply named slots to custom markup. Recipe axes must not collide with inherited props.