useMergedRefs
@astryxdesign/core v0.7.1 · useMergedRefs
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
refs | readonly MergedRef<T>[] | — | Up to six refs that should all receive the same element. One entry is a Ref<T | null>, a function ref, null, or undefined; empty slots are skipped. Required. |
Returns
| Name | Type | Description |
|---|---|---|
mergedRef | (value: Element | ComponentPublicInstance | null) => void | A merged callback ref that remains stable for the life of the component. It accepts whatever Vue hands a template ref, including null on unmount, and forwards the value to every entry in refs. |