skeletonlabs / floating-ui-svelte

A Floating UI wrapper for Svelte
https://floating-ui-svelte.vercel.app
MIT License
155 stars 7 forks source link

Add: useMergeRefs utility #125

Closed endigo9740 closed 4 months ago

endigo9740 commented 4 months ago

Reference

https://floating-ui.com/docs/react-utils

Description

Merges an array of refs, returning a memoized callback ref or null.

Hugos68 commented 4 months ago

This is a utility required because of React works, the issue that this hook solves doesn't exist in Svelte.