Composables
useForwardProps
Merge a component's default, explicitly-assigned, and reactive props into one forwardable object.
Advanced. Primitive-authoring utility from
@vyui/core — most app code never calls this 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 — 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>