Composables
useForwardProps
Merge a component's default, explicitly-assigned, and reactive props into one forwardable object.
Advanced. This is a primitive-authoring utility from
@vyui/core that most app code never calls directly.Overview
import { useForwardProps } from '@vyui/core'
const forwarded = useForwardProps(props)
Returns a computed merging a component's default props, the props actually assigned by its parent, and the reactive props argument, which is the building block for a wrapper component that needs to forward only the props its parent explicitly set, not Vue's fully-defaulted prop object.
Signature
useForwardProps<T>(props: MaybeRefOrGetter<T>): ComputedRef<T>