Skip to main content
useRefMap
@coinbase/cds-common@8.34.1
Manages a collection of refs using a key-value map structure, allowing dynamic registration and retrieval of refs by their unique identifiers. Commonly used in components that need to track multiple DOM elements, such as tabs, tours, or complex navigation systems.
Import
import { useRefMap } from '@coinbase/cds-common/hooks/useRefMap'
SourceView source code
View as Markdown

Basic usage

Loading...

With Multiple Elements

Loading...

With Initial Refs

Loading...

Is this page useful?

Coinbase Design is an open-source, adaptable system of guidelines, components, and tools that aid the best practices of user interface design for crypto products.