ui/hooks
Hooks
Per-hook API reference for the headless hooks that power @diffgazer/ui.
The headless hooks behind @diffgazer/ui. Each is standalone — it takes a ref or options, returns state or props, and carries no runtime dependencies (except listbox, which reuses the keys navigation engine). Copy any of them with dgadd add ui/<hook>, or import from the package.
State
Positioning & overflow
Interaction
Refs
Document
Need keyboard or focus behavior instead? See the keys hooks for navigation, focus trap, focus restore, and scope-aware variants.