Skip to main content

Usage

Parameters

Return Value

Returns a callback ref that handles all provided refs, or null if all refs are null/undefined.

Features

  • Handles both function refs and object refs
  • Optimized with useMemo for performance
  • Compatible with floating-ui patterns

Examples

Forwarding Refs with Internal Usage

Multiple Internal Refs

Conditional Refs

This hook is similar to the useMergeRefs hook from floating-ui and follows the same patterns.
Last modified on December 22, 2025