Skip to content

Functions

Explore hooks by category from the left sidebar and jump into implementation details quickly.

Core
Sort by

Elements

useActiveElement-Track active focused element
useClickOutside-Handle clicks outside an element
useDraggable-Make an element draggable
useDropZone-Track drag-and-drop zone state
useElementBounding-Track element bounding rect
useElementSize-Track element width and height
useElementVisibility-Track element viewport visibility
useParentElement-Get parent element from ref
useTextareaAutoSize-Auto-resize textarea to fit content
useWindowFocus-Track window focus state
useWindowScroll-Track window scroll offsets

Released under the MIT License.