Use Merged Ref โ shadcn/ui Hook by mizzle | shadcnregistry
Use Merged Ref
hook
Points several refs at one element, so a component can keep its own ref and still honour the one passed to it. Supports object refs, callback refs and React 19 ref cleanups.