Skip to content

useForwardPropsEmits

Overview

Combines forwarded props with emit handlers. Drop-in replacement for reka-ui's useForwardPropsEmits that supports both the array form and the object validator form of defineEmits.

Signature

useForwardPropsEmits(props, emit)

Parameters

NameTypeRequiredDescription
propsMaybeRefOrGetteryes
emitFunctionno

Returns

ComputedRef

Source

client/lib/use/useForwardPropsEmits.js:45

Documents matching: server v3.0.0a1.post1client v3.0.0-alpha.2